mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-11-22 09:16:27 -06:00
Groundwater problem: use the conjugated gradient solver from dune-istl
the groundwater problem should be symmetric because it uses an incompressible fluid, is a single phase problem and uses the immiscible model. (i.e., there should never be a difference between the upstream and the downstream cells.) the main purpose of this commit is to have a test that uses a linear solver wrapper which was generated by the internal EWOMS_WRAP_ISTL_SOLVER macro.
This commit is contained in:
parent
99304f9689
commit
a9f53f9d87
@ -29,6 +29,7 @@
|
||||
#define EWOMS_GROUND_WATER_PROBLEM_HH
|
||||
|
||||
#include <ewoms/models/immiscible/immiscibleproperties.hh>
|
||||
#include <ewoms/linear/parallelistlbackend.hh>
|
||||
|
||||
#include <opm/material/components/SimpleH2O.hpp>
|
||||
#include <opm/material/fluidstates/ImmiscibleFluidState.hpp>
|
||||
@ -99,8 +100,13 @@ SET_SCALAR_PROP(GroundWaterBaseProblem, InitialTimeStepSize, 1);
|
||||
|
||||
// The default DGF file to load
|
||||
SET_STRING_PROP(GroundWaterBaseProblem, GridFile, "./data/groundwater_2d.dgf");
|
||||
} // namespace Properties
|
||||
} // namespace Ewoms
|
||||
|
||||
// Use the conjugated gradient linear solver with the default preconditioner (i.e.,
|
||||
// ILU-0) from dune-istl
|
||||
SET_TAG_PROP(GroundWaterBaseProblem, LinearSolverSplice, ParallelIstlLinearSolver);
|
||||
SET_TYPE_PROP(GroundWaterBaseProblem, LinearSolverWrapper,
|
||||
Ewoms::Linear::SolverWrapperConjugatedGradients<TypeTag>);
|
||||
}} // namespace Properties, Ewoms
|
||||
|
||||
namespace Ewoms {
|
||||
/*!
|
||||
|
Loading…
Reference in New Issue
Block a user