Merge pull request #903 from akva2/fix_param_as_property

Fix runtime parameters used as properties
This commit is contained in:
Arne Morten Kvarving 2024-07-01 09:46:33 +02:00 committed by GitHub
commit 055734ec23
2 changed files with 1 additions and 3 deletions

View File

@ -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>;

View File

@ -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.");
}
}