mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
ebos: make it compile if ALUGrid is used as grid
the EQUIL init code from opm-core chokes hard if any Dune grid other than Dune::CpGrid is passed to it. Until opm-core gets its act together or EQUIL init is properly implemented within eWoms, let's just disable EQUIL initialization in ebos (and print a warning) if ALUGrid is used.
This commit is contained in:
parent
dee67a7a94
commit
1d63276cfb
@ -849,6 +849,9 @@ private:
|
|||||||
|
|
||||||
void readEquilInitialCondition_()
|
void readEquilInitialCondition_()
|
||||||
{
|
{
|
||||||
|
#if EBOS_USE_ALUGRID
|
||||||
|
#warning "EQUIL-based initialization cannot yet be used with ALUGrid"
|
||||||
|
#else
|
||||||
// The EQUIL initializer also modifies the material law manager according to
|
// The EQUIL initializer also modifies the material law manager according to
|
||||||
// SWATINIT (although it does not belong there strictly speaking)
|
// SWATINIT (although it does not belong there strictly speaking)
|
||||||
typedef Ewoms::EclEquilInitializer<TypeTag> EquilInitializer;
|
typedef Ewoms::EclEquilInitializer<TypeTag> EquilInitializer;
|
||||||
@ -865,6 +868,7 @@ private:
|
|||||||
auto &elemFluidState = initialFluidStates_[elemIdx];
|
auto &elemFluidState = initialFluidStates_[elemIdx];
|
||||||
elemFluidState.assign(equilInitializer.initialFluidState(elemIdx));
|
elemFluidState.assign(equilInitializer.initialFluidState(elemIdx));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void readExplicitInitialCondition_()
|
void readExplicitInitialCondition_()
|
||||||
|
Loading…
Reference in New Issue
Block a user