Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
dumux-repositories
dumux
Commits
4c48d6f0
Commit
4c48d6f0
authored
Mar 17, 2020
by
Timo Koch
Browse files
[examples] Update readme
parent
cf60e1d3
Changes
2
Show whitespace changes
Inline
Side-by-side
examples/2pinfiltration/README.md
View file @
4c48d6f0
...
...
@@ -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
```
cpp
#include
<dumux/linear/amgbackend.hh>
#include
<dumux/linear/linearsolvertraits.hh>
```
we include the nonlinear Newton's method
```
cpp
...
...
@@ -785,7 +786,7 @@ we set the assembler with the time loop because we have an instationary problem
```
we set the linear solver
```
cpp
using
LinearSolver
=
AMGB
ackend
<
TypeTag
>
;
using
LinearSolver
=
AMGB
iCGSTABBackend
<
LinearSolverTraits
<
GridGeometry
>
>
;
auto
linearSolver
=
std
::
make_shared
<
LinearSolver
>
(
leafGridView
,
gridGeometry
->
dofMapper
());
```
additionally we set the non-linear solver.
...
...
examples/shallowwaterfriction/README.md
View file @
4c48d6f0
...
...
@@ -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
```cpp
#include <dumux/linear/amgbackend.hh>
#include <dumux/linear/linearsolvertraits.hh>
```
We include the nonlinear newtons method
```cpp
...
...
@@ -721,7 +722,7 @@ we set the assembler with the time loop because we have an instationary problem.
```
We set the linear solver.
```cpp
using LinearSolver =
Dumux::AMGBackend<TypeTag
>;
using LinearSolver =
AMGBiCGSTABBackend<LinearSolverTraits<GridGeometry>
>;
auto linearSolver = std::make_shared<LinearSolver>(leafGridView, gridGeometry->dofMapper());
```
Additionaly, we set the non-linear solver.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment