mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
fix the grid adaptivity functionality
Note that this is rarely tested because it requires the availability of dune-alugrid and dune-fem.
This commit is contained in:
parent
00a907962b
commit
79a838e7c8
@ -47,6 +47,10 @@
|
||||
#include <ewoms/models/immiscible/immiscibleproperties.hh>
|
||||
#include <ewoms/disc/common/restrictprolong.hh>
|
||||
|
||||
#if HAVE_DUNE_ALUGRID
|
||||
#include <dune/alugrid/grid.hh>
|
||||
#endif
|
||||
|
||||
#include <dune/common/version.hh>
|
||||
#include <dune/common/fvector.hh>
|
||||
#include <dune/common/fmatrix.hh>
|
||||
@ -62,6 +66,16 @@ class FingerProblem;
|
||||
namespace Properties {
|
||||
NEW_TYPE_TAG(FingerBaseProblem, INHERITS_FROM(StructuredGridManager));
|
||||
|
||||
#if HAVE_DUNE_ALUGRID
|
||||
// use dune-alugrid if available
|
||||
SET_TYPE_PROP(FingerBaseProblem,
|
||||
Grid,
|
||||
Dune::ALUGrid</*dim=*/2,
|
||||
/*dimWorld=*/2,
|
||||
Dune::cube,
|
||||
Dune::nonconforming>);
|
||||
#endif
|
||||
|
||||
// declare the properties used by the finger problem
|
||||
NEW_PROP_TAG(InitialWaterSaturation);
|
||||
|
||||
|
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user