Skip to content
GitLab
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
aa066372
Commit
aa066372
authored
Jan 24, 2020
by
Timo Koch
Browse files
[test][richards][parallel][lens] Use istl solver factory backend
parent
cf36a587
Changes
2
Hide whitespace changes
Inline
Side-by-side
test/porousmediumflow/richards/implicit/lens/main.cc
View file @
aa066372
...
...
@@ -38,8 +38,7 @@
#include
<dumux/common/valgrind.hh>
#include
<dumux/common/dumuxmessage.hh>
#include
<dumux/linear/amgbackend.hh>
#include
<dumux/linear/linearsolvertraits.hh>
#include
<dumux/linear/genericistlbackend.hh>
#include
<dumux/porousmediumflow/richards/newtonsolver.hh>
#include
<dumux/assembly/fvassembler.hh>
...
...
@@ -144,7 +143,7 @@ int main(int argc, char** argv) try
auto
assembler
=
std
::
make_shared
<
Assembler
>
(
problem
,
gridGeometry
,
gridVariables
,
timeLoop
,
xOld
);
// the linear solver
using
LinearSolver
=
AMGBiCGSTABBackend
<
LinearSolverTraits
<
GridGeometry
>
>
;
using
LinearSolver
=
Dumux
::
GenericIstlBackend
<
TypeTag
>
;
auto
linearSolver
=
std
::
make_shared
<
LinearSolver
>
(
leafGridView
,
gridGeometry
->
dofMapper
());
// the non-linear solver
...
...
test/porousmediumflow/richards/implicit/lens/params.input
View file @
aa066372
...
...
@@ -8,8 +8,14 @@ Cells = 24 16
[Problem]
Name = richardslens
EnableGravity =
1
# enable gravity
EnableGravity =
true
# enable gravity
[Newton]
TargetSteps = 18 # set the "desirable" number of Newton iterations of a time step
EnableChop = true # chop for better convergence
[LinearSolver]
Type = bicgstabsolver
PreconditionerType = amg
AmgMaxLevel = 2
AmgAccumulationMode = atOnce
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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