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:
@@ -47,6 +47,10 @@
|
|||||||
#include <ewoms/models/immiscible/immiscibleproperties.hh>
|
#include <ewoms/models/immiscible/immiscibleproperties.hh>
|
||||||
#include <ewoms/disc/common/restrictprolong.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/version.hh>
|
||||||
#include <dune/common/fvector.hh>
|
#include <dune/common/fvector.hh>
|
||||||
#include <dune/common/fmatrix.hh>
|
#include <dune/common/fmatrix.hh>
|
||||||
@@ -62,6 +66,16 @@ class FingerProblem;
|
|||||||
namespace Properties {
|
namespace Properties {
|
||||||
NEW_TYPE_TAG(FingerBaseProblem, INHERITS_FROM(StructuredGridManager));
|
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
|
// declare the properties used by the finger problem
|
||||||
NEW_PROP_TAG(InitialWaterSaturation);
|
NEW_PROP_TAG(InitialWaterSaturation);
|
||||||
|
|
||||||
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user