mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-29 10:40:59 -06:00
Merge pull request #903 from akva2/fix_param_as_property
Fix runtime parameters used as properties
This commit is contained in:
commit
055734ec23
@ -337,7 +337,6 @@ class CO2PTProblem : public GetPropType<TypeTag, Properties::BaseProblem>
|
||||
enum { numComponents = getPropValue<TypeTag, Properties::NumComponents>() };
|
||||
enum { enableEnergy = getPropValue<TypeTag, Properties::EnableEnergy>() };
|
||||
enum { enableDiffusion = getPropValue<TypeTag, Properties::EnableDiffusion>() };
|
||||
enum { enableGravity = getPropValue<TypeTag, Properties::EnableGravity>() };
|
||||
|
||||
using GlobalPosition = Dune::FieldVector<CoordScalar, dimWorld>;
|
||||
using DimMatrix = Dune::FieldMatrix<Scalar, dimWorld, dimWorld>;
|
||||
|
@ -78,7 +78,6 @@ class BlackOilFoamModule
|
||||
static constexpr unsigned waterPhaseIdx = FluidSystem::waterPhaseIdx;
|
||||
|
||||
static constexpr unsigned enableFoam = enableFoamV;
|
||||
static constexpr bool enableVtkOutput = getPropValue<TypeTag, Properties::EnableVtkOutput>();
|
||||
|
||||
static constexpr unsigned numEq = getPropValue<TypeTag, Properties::NumEq>();
|
||||
static constexpr unsigned numPhases = FluidSystem::numPhases;
|
||||
@ -188,7 +187,7 @@ public:
|
||||
Simulator&)
|
||||
{
|
||||
if constexpr (enableFoam) {
|
||||
if (enableVtkOutput) {
|
||||
if (Parameters::get<TypeTag, Properties::EnableVtkOutput>()) {
|
||||
OpmLog::warning("VTK output requested, currently unsupported by the foam module.");
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user