Skip to content
Snippets Groups Projects
Commit 77f330ee authored by Simon Emmert's avatar Simon Emmert
Browse files

[2p][test] use ILU0 with GMRes as Linear Solver for 2p tests

Needed to ensure convergence with minimal setup (no UMFPack) for
test_2p_incompressible_tpfa_oilwet. The coarse grid solver is changed to
SSOR when UMFPack is not available, which did not converge as well.
parent 9fe9b20c
No related branches found
No related tags found
1 merge request!2051Fix tests that fail with minimal setup
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#include <dumux/common/valgrind.hh> #include <dumux/common/valgrind.hh>
#include <dumux/common/dumuxmessage.hh> #include <dumux/common/dumuxmessage.hh>
#include <dumux/linear/amgbackend.hh> #include <dumux/linear/seqsolverbackend.hh>
#include <dumux/linear/linearsolvertraits.hh> #include <dumux/linear/linearsolvertraits.hh>
#include <dumux/nonlinear/newtonsolver.hh> #include <dumux/nonlinear/newtonsolver.hh>
...@@ -181,8 +181,8 @@ int main(int argc, char** argv) try ...@@ -181,8 +181,8 @@ int main(int argc, char** argv) try
auto assembler = std::make_shared<Assembler>(problem, gridGeometry, gridVariables, timeLoop, xOld); auto assembler = std::make_shared<Assembler>(problem, gridGeometry, gridVariables, timeLoop, xOld);
// the linear solver // the linear solver
using LinearSolver = AMGBiCGSTABBackend<LinearSolverTraits<GridGeometry>>; using LinearSolver = ILU0RestartedGMResBackend;
auto linearSolver = std::make_shared<LinearSolver>(leafGridView, gridGeometry->dofMapper()); auto linearSolver = std::make_shared<LinearSolver>();
// the non-linear solver // the non-linear solver
using NewtonSolver = Dumux::NewtonSolver<Assembler, LinearSolver>; using NewtonSolver = Dumux::NewtonSolver<Assembler, LinearSolver>;
......
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