Commit 4c48d6f0 authored by Timo Koch's avatar Timo Koch
Browse files

[examples] Update readme

parent cf60e1d3
...@@ -571,6 +571,7 @@ The file dumuxmessage.hh contains the class defining the start and end message o ...@@ -571,6 +571,7 @@ The file dumuxmessage.hh contains the class defining the start and end message o
we include the linear solver to be used to solve the linear system we include the linear solver to be used to solve the linear system
```cpp ```cpp
#include <dumux/linear/amgbackend.hh> #include <dumux/linear/amgbackend.hh>
#include <dumux/linear/linearsolvertraits.hh>
``` ```
we include the nonlinear Newton's method we include the nonlinear Newton's method
```cpp ```cpp
...@@ -785,7 +786,7 @@ we set the assembler with the time loop because we have an instationary problem ...@@ -785,7 +786,7 @@ we set the assembler with the time loop because we have an instationary problem
``` ```
we set the linear solver we set the linear solver
```cpp ```cpp
using LinearSolver = AMGBackend<TypeTag>; using LinearSolver = AMGBiCGSTABBackend<LinearSolverTraits<GridGeometry>>;
auto linearSolver = std::make_shared<LinearSolver>(leafGridView, gridGeometry->dofMapper()); auto linearSolver = std::make_shared<LinearSolver>(leafGridView, gridGeometry->dofMapper());
``` ```
additionally we set the non-linear solver. additionally we set the non-linear solver.
......
...@@ -613,6 +613,7 @@ The gridmanager constructs a grid from the information in the input or grid file ...@@ -613,6 +613,7 @@ The gridmanager constructs a grid from the information in the input or grid file
We include the linear solver to be used to solve the linear system We include the linear solver to be used to solve the linear system
```cpp ```cpp
#include <dumux/linear/amgbackend.hh> #include <dumux/linear/amgbackend.hh>
#include <dumux/linear/linearsolvertraits.hh>
``` ```
We include the nonlinear newtons method We include the nonlinear newtons method
```cpp ```cpp
...@@ -721,7 +722,7 @@ we set the assembler with the time loop because we have an instationary problem. ...@@ -721,7 +722,7 @@ we set the assembler with the time loop because we have an instationary problem.
``` ```
We set the linear solver. We set the linear solver.
```cpp ```cpp
using LinearSolver = Dumux::AMGBackend<TypeTag>; using LinearSolver = AMGBiCGSTABBackend<LinearSolverTraits<GridGeometry>>;
auto linearSolver = std::make_shared<LinearSolver>(leafGridView, gridGeometry->dofMapper()); auto linearSolver = std::make_shared<LinearSolver>(leafGridView, gridGeometry->dofMapper());
``` ```
Additionaly, we set the non-linear solver. Additionaly, we set the non-linear solver.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment