diff --git a/examples/2pinfiltration/doc/main.md b/examples/2pinfiltration/doc/main.md index 4d6cb19ed597d24a20aa4a4a7acba0461ce844a8..ce6354fc082225c3aed8c4316c727c6352e7e5d3 100644 --- a/examples/2pinfiltration/doc/main.md +++ b/examples/2pinfiltration/doc/main.md @@ -48,8 +48,9 @@ In Dumux, a property system is used to specify the model. For this, different pr We include the linear solver to be used to solve the linear system and the nonlinear Newton's method ```cpp -#include <dumux/linear/amgbackend.hh> +#include <dumux/linear/istlsolvers.hh> #include <dumux/linear/linearsolvertraits.hh> +#include <dumux/linear/linearalgebratraits.hh> #include <dumux/nonlinear/newtonsolver.hh> ``` @@ -267,7 +268,8 @@ and set the assembler with the time loop because we have an instationary problem We set the linear solver and the non-linear solver ```cpp - using LinearSolver = AMGBiCGSTABBackend<LinearSolverTraits<GridGeometry>>; + using LinearSolver = AMGBiCGSTABIstlSolver<LinearSolverTraits<GridGeometry>, + LinearAlgebraTraitsFromAssembler<Assembler>>; auto linearSolver = std::make_shared<LinearSolver>(leafGridView, gridGeometry->dofMapper()); using NewtonSolver = Dumux::NewtonSolver<Assembler, LinearSolver>; diff --git a/examples/shallowwaterfriction/doc/main.md b/examples/shallowwaterfriction/doc/main.md index 4172a6fcaaf6f9d33819d5e3d05d418ec098545a..4e6ec8b8ac251c4450cd368e913b7c804108c80f 100644 --- a/examples/shallowwaterfriction/doc/main.md +++ b/examples/shallowwaterfriction/doc/main.md @@ -47,8 +47,9 @@ and the assembler for the linear systems arising from finite volume discretizati (box-scheme, tpfa-approximation, mpfa-approximation). ```cpp +#include <dumux/linear/istlsolvers.hh> #include <dumux/linear/linearsolvertraits.hh> -#include <dumux/linear/amgbackend.hh> +#include <dumux/linear/linearalgebratraits.hh> #include <dumux/nonlinear/newtonsolver.hh> #include <dumux/assembly/fvassembler.hh> ``` @@ -174,7 +175,8 @@ Within the time loop, we will use this assembler in each time step to assemble t We initialize the linear solver. ```cpp - using LinearSolver = AMGBiCGSTABBackend<LinearSolverTraits<GridGeometry>>; + using LinearSolver = AMGBiCGSTABIstlSolver<LinearSolverTraits<GridGeometry>, + LinearAlgebraTraitsFromAssembler<Assembler>>; auto linearSolver = std::make_shared<LinearSolver>(leafGridView, gridGeometry->dofMapper()); ```