Skip to content
Snippets Groups Projects
Commit aa066372 authored by Timo Koch's avatar Timo Koch
Browse files

[test][richards][parallel][lens] Use istl solver factory backend

parent cf36a587
No related branches found
No related tags found
1 merge request!1845Feature/istl solver factory
...@@ -38,8 +38,7 @@ ...@@ -38,8 +38,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/genericistlbackend.hh>
#include <dumux/linear/linearsolvertraits.hh>
#include <dumux/porousmediumflow/richards/newtonsolver.hh> #include <dumux/porousmediumflow/richards/newtonsolver.hh>
#include <dumux/assembly/fvassembler.hh> #include <dumux/assembly/fvassembler.hh>
...@@ -144,7 +143,7 @@ int main(int argc, char** argv) try ...@@ -144,7 +143,7 @@ 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 = Dumux::GenericIstlBackend<TypeTag>;
auto linearSolver = std::make_shared<LinearSolver>(leafGridView, gridGeometry->dofMapper()); auto linearSolver = std::make_shared<LinearSolver>(leafGridView, gridGeometry->dofMapper());
// the non-linear solver // the non-linear solver
......
...@@ -8,8 +8,14 @@ Cells = 24 16 ...@@ -8,8 +8,14 @@ Cells = 24 16
[Problem] [Problem]
Name = richardslens Name = richardslens
EnableGravity = 1 # enable gravity EnableGravity = true # enable gravity
[Newton] [Newton]
TargetSteps = 18 # set the "desirable" number of Newton iterations of a time step TargetSteps = 18 # set the "desirable" number of Newton iterations of a time step
EnableChop = true # chop for better convergence EnableChop = true # chop for better convergence
[LinearSolver]
Type = bicgstabsolver
PreconditionerType = amg
AmgMaxLevel = 2
AmgAccumulationMode = atOnce
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