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:
Andreas Lauser 2015-10-07 14:01:57 +02:00
parent dee67a7a94
commit 1d63276cfb

View File

@ -849,6 +849,9 @@ private:
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
// SWATINIT (although it does not belong there strictly speaking)
typedef Ewoms::EclEquilInitializer<TypeTag> EquilInitializer;
@ -865,6 +868,7 @@ private:
auto &elemFluidState = initialFluidStates_[elemIdx];
elemFluidState.assign(equilInitializer.initialFluidState(elemIdx));
}
#endif
}
void readExplicitInitialCondition_()