diff --git a/exercises/exercise-basic/2p2cmain.cc b/exercises/exercise-basic/2p2cmain.cc index 68c0a3ee2f54218f182a0a36de2245772f3fff10..5ad811997a379a34add459839ae00b81fb8bd733 100644 --- a/exercises/exercise-basic/2p2cmain.cc +++ b/exercises/exercise-basic/2p2cmain.cc @@ -36,6 +36,7 @@ #include <dumux/common/dumuxmessage.hh> #include <dumux/linear/amgbackend.hh> +#include <dumux/linear/linearsolvertraits.hh> #include <dumux/nonlinear/newtonsolver.hh> #include <dumux/assembly/fvassembler.hh> @@ -123,7 +124,7 @@ int main(int argc, char** argv) try auto assembler = std::make_shared<Assembler>(problem, fvGridGeometry, gridVariables, timeLoop); // the linear solver - using LinearSolver = AMGBackend<TypeTag>; + using LinearSolver = AMGBiCGSTABBackend<LinearSolverTraits<FVGridGeometry>>; auto linearSolver = std::make_shared<LinearSolver>(leafGridView, fvGridGeometry->dofMapper()); // the non-linear solver diff --git a/exercises/exercise-basic/2pmain.cc b/exercises/exercise-basic/2pmain.cc index a00ad7ad047c2172cbc07355eacf8e467f1197b5..3fe5018bd79d3743486d0618663514456a449de5 100644 --- a/exercises/exercise-basic/2pmain.cc +++ b/exercises/exercise-basic/2pmain.cc @@ -36,6 +36,7 @@ #include <dumux/common/defaultusagemessage.hh> #include <dumux/linear/amgbackend.hh> +#include <dumux/linear/linearsolvertraits.hh> #include <dumux/nonlinear/newtonsolver.hh> #include <dumux/assembly/fvassembler.hh> @@ -127,7 +128,7 @@ int main(int argc, char** argv) try auto assembler = std::make_shared<Assembler>(problem, fvGridGeometry, gridVariables, timeLoop); // the linear solver - using LinearSolver = AMGBackend<TypeTag>; + using LinearSolver = AMGBiCGSTABBackend<LinearSolverTraits<FVGridGeometry>>; auto linearSolver = std::make_shared<LinearSolver>(leafGridView, fvGridGeometry->dofMapper()); // the non-linear solver diff --git a/exercises/exercise-biomineralization/main.cc b/exercises/exercise-biomineralization/main.cc index c9b3513bc866bc86dbd976f4f40c5f952b43b846..41aa74548e14b09ab1f36423967eb23b99bf505c 100644 --- a/exercises/exercise-biomineralization/main.cc +++ b/exercises/exercise-biomineralization/main.cc @@ -39,6 +39,7 @@ #include <dumux/common/defaultusagemessage.hh> #include <dumux/linear/amgbackend.hh> +#include <dumux/linear/linearsolvertraits.hh> #include <dumux/nonlinear/newtonsolver.hh> #include <dumux/assembly/fvassembler.hh> @@ -133,7 +134,7 @@ int main(int argc, char** argv) try auto assembler = std::make_shared<Assembler>(problem, fvGridGeometry, gridVariables, timeLoop); // the linear solver - using LinearSolver = AMGBackend<TypeTag>; + using LinearSolver = AMGBiCGSTABBackend<LinearSolverTraits<FVGridGeometry>>; auto linearSolver = std::make_shared<LinearSolver>(leafGridView, fvGridGeometry->dofMapper()); // the non-linear solver diff --git a/exercises/exercise-fluidsystem/main.cc b/exercises/exercise-fluidsystem/main.cc index baa1ea7877ef117fee608e6c90cae94d00cd84eb..c35b4e68ac0366187174225b4db1871767e86b54 100644 --- a/exercises/exercise-fluidsystem/main.cc +++ b/exercises/exercise-fluidsystem/main.cc @@ -42,6 +42,7 @@ #include <dumux/common/defaultusagemessage.hh> #include <dumux/linear/amgbackend.hh> +#include <dumux/linear/linearsolvertraits.hh> #include <dumux/nonlinear/newtonsolver.hh> #include <dumux/assembly/fvassembler.hh> @@ -131,7 +132,7 @@ int main(int argc, char** argv) try auto assembler = std::make_shared<Assembler>(problem, fvGridGeometry, gridVariables, timeLoop); // the linear solver - using LinearSolver = AMGBackend<TypeTag>; + using LinearSolver = AMGBiCGSTABBackend<LinearSolverTraits<FVGridGeometry>>; auto linearSolver = std::make_shared<LinearSolver>(leafGridView, fvGridGeometry->dofMapper()); // the non-linear solver diff --git a/exercises/exercise-grids/main.cc b/exercises/exercise-grids/main.cc index 90fc1fbad5dfca2f16a769a50d783cacdc105461..adf41083d8b9e61a7d43eeb6d2297de820c2a096 100644 --- a/exercises/exercise-grids/main.cc +++ b/exercises/exercise-grids/main.cc @@ -36,6 +36,7 @@ #include <dumux/common/defaultusagemessage.hh> #include <dumux/linear/amgbackend.hh> +#include <dumux/linear/linearsolvertraits.hh> #include <dumux/nonlinear/newtonsolver.hh> #include <dumux/assembly/fvassembler.hh> @@ -125,7 +126,7 @@ int main(int argc, char** argv) try auto assembler = std::make_shared<Assembler>(problem, fvGridGeometry, gridVariables, timeLoop); // the linear solver - using LinearSolver = AMGBackend<TypeTag>; + using LinearSolver = AMGBiCGSTABBackend<LinearSolverTraits<FVGridGeometry>>; auto linearSolver = std::make_shared<LinearSolver>(leafGridView, fvGridGeometry->dofMapper()); // the non-linear solver diff --git a/exercises/exercise-properties/main.cc b/exercises/exercise-properties/main.cc index a0179621fad3a6c76329e87ddbe6987840c84532..91a44609c3fff557b62c0d4700bb0a602814e8ac 100644 --- a/exercises/exercise-properties/main.cc +++ b/exercises/exercise-properties/main.cc @@ -41,6 +41,7 @@ #include <dumux/common/defaultusagemessage.hh> #include <dumux/linear/amgbackend.hh> +#include <dumux/linear/linearsolvertraits.hh> #include <dumux/nonlinear/newtonsolver.hh> #include <dumux/assembly/fvassembler.hh> @@ -154,7 +155,7 @@ int main(int argc, char** argv) try auto assembler = std::make_shared<Assembler>(problem, fvGridGeometry, gridVariables, timeLoop); // the linear solver - using LinearSolver = AMGBackend<TypeTag>; + using LinearSolver = AMGBiCGSTABBackend<LinearSolverTraits<FVGridGeometry>>; auto linearSolver = std::make_shared<LinearSolver>(leafGridView, fvGridGeometry->dofMapper()); // the non-linear solver diff --git a/exercises/exercise-runtimeparams/main.cc b/exercises/exercise-runtimeparams/main.cc index 0919336e9db6e162c839d2c4621c512968580910..30fa1f8bf9ae21311d904584af63ea03d4a49be4 100644 --- a/exercises/exercise-runtimeparams/main.cc +++ b/exercises/exercise-runtimeparams/main.cc @@ -36,6 +36,7 @@ #include <dumux/common/defaultusagemessage.hh> #include <dumux/linear/amgbackend.hh> +#include <dumux/linear/linearsolvertraits.hh> #include <dumux/nonlinear/newtonsolver.hh> #include <dumux/assembly/fvassembler.hh> @@ -125,7 +126,7 @@ int main(int argc, char** argv) try auto assembler = std::make_shared<Assembler>(problem, fvGridGeometry, gridVariables, timeLoop); // the linear solver - using LinearSolver = AMGBackend<TypeTag>; + using LinearSolver = AMGBiCGSTABBackend<LinearSolverTraits<FVGridGeometry>>; auto linearSolver = std::make_shared<LinearSolver>(leafGridView, fvGridGeometry->dofMapper()); // the non-linear solver diff --git a/exercises/solution/exercise-basic/2pnimain.cc b/exercises/solution/exercise-basic/2pnimain.cc index 34eb43caaf3f2e53d684a9c44b9dc52476e4ce1b..d149b8467b9ffcb0a56254d435e88d644d1292e5 100644 --- a/exercises/solution/exercise-basic/2pnimain.cc +++ b/exercises/solution/exercise-basic/2pnimain.cc @@ -36,6 +36,7 @@ #include <dumux/common/defaultusagemessage.hh> #include <dumux/linear/amgbackend.hh> +#include <dumux/linear/linearsolvertraits.hh> #include <dumux/nonlinear/newtonsolver.hh> #include <dumux/assembly/fvassembler.hh> @@ -123,7 +124,7 @@ int main(int argc, char** argv) try auto assembler = std::make_shared<Assembler>(problem, fvGridGeometry, gridVariables, timeLoop); // the linear solver - using LinearSolver = AMGBackend<TypeTag>; + using LinearSolver = AMGBiCGSTABBackend<LinearSolverTraits<FVGridGeometry>>; auto linearSolver = std::make_shared<LinearSolver>(leafGridView, fvGridGeometry->dofMapper()); // the non-linear solver diff --git a/exercises/solution/exercise-biomineralization/main.cc b/exercises/solution/exercise-biomineralization/main.cc index c9b3513bc866bc86dbd976f4f40c5f952b43b846..41aa74548e14b09ab1f36423967eb23b99bf505c 100644 --- a/exercises/solution/exercise-biomineralization/main.cc +++ b/exercises/solution/exercise-biomineralization/main.cc @@ -39,6 +39,7 @@ #include <dumux/common/defaultusagemessage.hh> #include <dumux/linear/amgbackend.hh> +#include <dumux/linear/linearsolvertraits.hh> #include <dumux/nonlinear/newtonsolver.hh> #include <dumux/assembly/fvassembler.hh> @@ -133,7 +134,7 @@ int main(int argc, char** argv) try auto assembler = std::make_shared<Assembler>(problem, fvGridGeometry, gridVariables, timeLoop); // the linear solver - using LinearSolver = AMGBackend<TypeTag>; + using LinearSolver = AMGBiCGSTABBackend<LinearSolverTraits<FVGridGeometry>>; auto linearSolver = std::make_shared<LinearSolver>(leafGridView, fvGridGeometry->dofMapper()); // the non-linear solver diff --git a/exercises/solution/exercise-fluidsystem/main.cc b/exercises/solution/exercise-fluidsystem/main.cc index 571e04518886e6ce6c1e872fd33bd0133828f1e7..23e727851994d980e71411d039142a0195c9f462 100644 --- a/exercises/solution/exercise-fluidsystem/main.cc +++ b/exercises/solution/exercise-fluidsystem/main.cc @@ -42,6 +42,7 @@ #include <dumux/common/defaultusagemessage.hh> #include <dumux/linear/amgbackend.hh> +#include <dumux/linear/linearsolvertraits.hh> #include <dumux/nonlinear/newtonsolver.hh> #include <dumux/assembly/fvassembler.hh> @@ -128,7 +129,7 @@ int main(int argc, char** argv) try auto assembler = std::make_shared<Assembler>(problem, fvGridGeometry, gridVariables, timeLoop); // the linear solver - using LinearSolver = AMGBackend<TypeTag>; + using LinearSolver = AMGBiCGSTABBackend<LinearSolverTraits<FVGridGeometry>>; auto linearSolver = std::make_shared<LinearSolver>(leafGridView, fvGridGeometry->dofMapper()); // the non-linear solver diff --git a/exercises/solution/exercise-grids/main.cc b/exercises/solution/exercise-grids/main.cc index 62e20adf0d82b9f045711714cc8c03b19173bc79..2810e5b593d6767e688e13193aded231e103070b 100644 --- a/exercises/solution/exercise-grids/main.cc +++ b/exercises/solution/exercise-grids/main.cc @@ -36,6 +36,7 @@ #include <dumux/common/defaultusagemessage.hh> #include <dumux/linear/amgbackend.hh> +#include <dumux/linear/linearsolvertraits.hh> #include <dumux/nonlinear/newtonsolver.hh> #include <dumux/assembly/fvassembler.hh> @@ -125,7 +126,7 @@ int main(int argc, char** argv) try auto assembler = std::make_shared<Assembler>(problem, fvGridGeometry, gridVariables, timeLoop); // the linear solver - using LinearSolver = AMGBackend<TypeTag>; + using LinearSolver = AMGBiCGSTABBackend<LinearSolverTraits<FVGridGeometry>>; auto linearSolver = std::make_shared<LinearSolver>(leafGridView, fvGridGeometry->dofMapper()); // the non-linear solver diff --git a/exercises/solution/exercise-properties/main.cc b/exercises/solution/exercise-properties/main.cc index df4d8a75d2045523105fccab988e7fb2b5e92d32..4510c44784e401b915919a35a36a41fc3b9819f3 100644 --- a/exercises/solution/exercise-properties/main.cc +++ b/exercises/solution/exercise-properties/main.cc @@ -41,6 +41,7 @@ #include <dumux/common/defaultusagemessage.hh> #include <dumux/linear/amgbackend.hh> +#include <dumux/linear/linearsolvertraits.hh> #include <dumux/nonlinear/newtonsolver.hh> #include <dumux/assembly/fvassembler.hh> @@ -155,7 +156,7 @@ int main(int argc, char** argv) try auto assembler = std::make_shared<Assembler>(problem, fvGridGeometry, gridVariables, timeLoop); // the linear solver - using LinearSolver = AMGBackend<TypeTag>; + using LinearSolver = AMGBiCGSTABBackend<LinearSolverTraits<FVGridGeometry>>; auto linearSolver = std::make_shared<LinearSolver>(leafGridView, fvGridGeometry->dofMapper()); // the non-linear solver diff --git a/exercises/solution/exercise-runtimeparams/main.cc b/exercises/solution/exercise-runtimeparams/main.cc index 0919336e9db6e162c839d2c4621c512968580910..30fa1f8bf9ae21311d904584af63ea03d4a49be4 100644 --- a/exercises/solution/exercise-runtimeparams/main.cc +++ b/exercises/solution/exercise-runtimeparams/main.cc @@ -36,6 +36,7 @@ #include <dumux/common/defaultusagemessage.hh> #include <dumux/linear/amgbackend.hh> +#include <dumux/linear/linearsolvertraits.hh> #include <dumux/nonlinear/newtonsolver.hh> #include <dumux/assembly/fvassembler.hh> @@ -125,7 +126,7 @@ int main(int argc, char** argv) try auto assembler = std::make_shared<Assembler>(problem, fvGridGeometry, gridVariables, timeLoop); // the linear solver - using LinearSolver = AMGBackend<TypeTag>; + using LinearSolver = AMGBiCGSTABBackend<LinearSolverTraits<FVGridGeometry>>; auto linearSolver = std::make_shared<LinearSolver>(leafGridView, fvGridGeometry->dofMapper()); // the non-linear solver