Commit c9a539c8 authored by Kilian Weishaupt's avatar Kilian Weishaupt Committed by Timo Koch
Browse files

[nonlinear][NewtonSolver] Remove precondBlockLevel from solve()

parent da36cca3
...@@ -1086,7 +1086,6 @@ private: ...@@ -1086,7 +1086,6 @@ private:
* Specialization for linear solvers that can handle MultiType matrices. * Specialization for linear solvers that can handle MultiType matrices.
* *
*/ */
template<class LS = LinearSolver, class V = SolutionVector> template<class LS = LinearSolver, class V = SolutionVector>
typename std::enable_if_t<linearSolverAcceptsMultiTypeMatrix<LS>() && typename std::enable_if_t<linearSolverAcceptsMultiTypeMatrix<LS>() &&
isMultiTypeBlockVector<V>(), bool> isMultiTypeBlockVector<V>(), bool>
...@@ -1096,9 +1095,7 @@ private: ...@@ -1096,9 +1095,7 @@ private:
SolutionVector& b) SolutionVector& b)
{ {
assert(this->checkSizesOfSubMatrices(A) && "Sub-blocks of MultiTypeBlockMatrix have wrong sizes!"); assert(this->checkSizesOfSubMatrices(A) && "Sub-blocks of MultiTypeBlockMatrix have wrong sizes!");
return ls.solve(A, x, b);
// TODO: automatically derive the precondBlockLevel
return ls.template solve</*precondBlockLevel=*/2>(A, x, b);
} }
/*! /*!
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment