Skip to content
Snippets Groups Projects
Commit da36cca3 authored by Kilian Weishaupt's avatar Kilian Weishaupt Committed by Timo Koch
Browse files

[linear][pdeSolver] Remove precondBlockLevel from solve()

parent 9eca581e
No related branches found
No related tags found
1 merge request!1951[linear] Remove preconditionerBlockLevel
...@@ -260,7 +260,6 @@ private: ...@@ -260,7 +260,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>
...@@ -270,9 +269,7 @@ private: ...@@ -270,9 +269,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);
} }
/*! /*!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment