rename TTag::EclFlowGasWaterSaltprecVapwatProblem to TTag::FlowGasWaterSaltprecVapwatProblem

This commit is contained in:
Arne Morten Kvarving 2024-02-06 14:47:31 +01:00
parent 27a5033db8
commit fe13dfddfa

View File

@ -28,33 +28,33 @@
namespace Opm { namespace Opm {
namespace Properties { namespace Properties {
namespace TTag { namespace TTag {
struct EclFlowGasWaterSaltprecVapwatProblem { struct FlowGasWaterSaltprecVapwatProblem {
using InheritsFrom = std::tuple<FlowProblem>; using InheritsFrom = std::tuple<FlowProblem>;
}; };
} }
template<class TypeTag> template<class TypeTag>
struct EnableBrine<TypeTag, TTag::EclFlowGasWaterSaltprecVapwatProblem> { struct EnableBrine<TypeTag, TTag::FlowGasWaterSaltprecVapwatProblem> {
static constexpr bool value = true; static constexpr bool value = true;
}; };
template<class TypeTag> template<class TypeTag>
struct EnableSaltPrecipitation<TypeTag, TTag::EclFlowGasWaterSaltprecVapwatProblem> { struct EnableSaltPrecipitation<TypeTag, TTag::FlowGasWaterSaltprecVapwatProblem> {
static constexpr bool value = true; static constexpr bool value = true;
}; };
template<class TypeTag> template<class TypeTag>
struct EnableVapwat<TypeTag, TTag::EclFlowGasWaterSaltprecVapwatProblem> { struct EnableVapwat<TypeTag, TTag::FlowGasWaterSaltprecVapwatProblem> {
static constexpr bool value = true; static constexpr bool value = true;
}; };
template<class TypeTag> template<class TypeTag>
struct EnableDisgasInWater<TypeTag, TTag::EclFlowGasWaterSaltprecVapwatProblem> { struct EnableDisgasInWater<TypeTag, TTag::FlowGasWaterSaltprecVapwatProblem> {
static constexpr bool value = true; static constexpr bool value = true;
}; };
//! The indices required by the model //! The indices required by the model
template<class TypeTag> template<class TypeTag>
struct Indices<TypeTag, TTag::EclFlowGasWaterSaltprecVapwatProblem> struct Indices<TypeTag, TTag::FlowGasWaterSaltprecVapwatProblem>
{ {
private: private:
// it is unfortunately not possible to simply use 'TypeTag' here because this leads // it is unfortunately not possible to simply use 'TypeTag' here because this leads
@ -64,15 +64,15 @@ private:
using FluidSystem = GetPropType<BaseTypeTag, Properties::FluidSystem>; using FluidSystem = GetPropType<BaseTypeTag, Properties::FluidSystem>;
public: public:
typedef BlackOilTwoPhaseIndices<getPropValue<TypeTag, Properties::EnableSolvent>(), using type = BlackOilTwoPhaseIndices<getPropValue<TypeTag, Properties::EnableSolvent>(),
getPropValue<TypeTag, Properties::EnableExtbo>(), getPropValue<TypeTag, Properties::EnableExtbo>(),
getPropValue<TypeTag, Properties::EnablePolymer>(), getPropValue<TypeTag, Properties::EnablePolymer>(),
getPropValue<TypeTag, Properties::EnableEnergy>(), getPropValue<TypeTag, Properties::EnableEnergy>(),
getPropValue<TypeTag, Properties::EnableFoam>(), getPropValue<TypeTag, Properties::EnableFoam>(),
getPropValue<TypeTag, Properties::EnableBrine>(), getPropValue<TypeTag, Properties::EnableBrine>(),
/*PVOffset=*/0, /*PVOffset=*/0,
/*disabledCompIdx=*/FluidSystem::oilCompIdx, /*disabledCompIdx=*/FluidSystem::oilCompIdx,
getPropValue<TypeTag, Properties::EnableMICP>()> type; getPropValue<TypeTag, Properties::EnableMICP>()>;
}; };
}} }}
@ -85,14 +85,14 @@ int flowEbosGasWaterSaltprecVapwatMain(int argc, char** argv, bool outputCout, b
// with incorrect locale settings. // with incorrect locale settings.
resetLocale(); resetLocale();
FlowMain<Properties::TTag::EclFlowGasWaterSaltprecVapwatProblem> FlowMain<Properties::TTag::FlowGasWaterSaltprecVapwatProblem>
mainfunc {argc, argv, outputCout, outputFiles}; mainfunc {argc, argv, outputCout, outputFiles};
return mainfunc.execute(); return mainfunc.execute();
} }
int flowEbosGasWaterSaltprecVapwatMainStandalone(int argc, char** argv) int flowEbosGasWaterSaltprecVapwatMainStandalone(int argc, char** argv)
{ {
using TypeTag = Properties::TTag::EclFlowGasWaterSaltprecVapwatProblem; using TypeTag = Properties::TTag::FlowGasWaterSaltprecVapwatProblem;
auto mainObject = std::make_unique<Opm::Main>(argc, argv); auto mainObject = std::make_unique<Opm::Main>(argc, argv);
auto ret = mainObject->runStatic<TypeTag>(); auto ret = mainObject->runStatic<TypeTag>();
// Destruct mainObject as the destructor calls MPI_Finalize! // Destruct mainObject as the destructor calls MPI_Finalize!