mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
rename TTag::EclFlowGasOilEnergyProblem to TTag::FlowGasOilEnergyProblem
This commit is contained in:
parent
ebe030c3fd
commit
39320e1a7e
@ -30,14 +30,14 @@
|
|||||||
namespace Opm {
|
namespace Opm {
|
||||||
namespace Properties {
|
namespace Properties {
|
||||||
namespace TTag {
|
namespace TTag {
|
||||||
struct EclFlowGasOilEnergyProblem {
|
struct FlowGasOilEnergyProblem {
|
||||||
using InheritsFrom = std::tuple<FlowProblem>;
|
using InheritsFrom = std::tuple<FlowProblem>;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
//! The indices required by the model
|
//! The indices required by the model
|
||||||
template<class TypeTag>
|
template<class TypeTag>
|
||||||
struct Indices<TypeTag, TTag::EclFlowGasOilEnergyProblem>
|
struct Indices<TypeTag, TTag::FlowGasOilEnergyProblem>
|
||||||
{
|
{
|
||||||
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
|
||||||
@ -47,31 +47,31 @@ 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::waterCompIdx,
|
/*disabledCompIdx=*/FluidSystem::waterCompIdx,
|
||||||
getPropValue<TypeTag, Properties::EnableMICP>()> type;
|
getPropValue<TypeTag, Properties::EnableMICP>()>;
|
||||||
};
|
};
|
||||||
template<class TypeTag>
|
template<class TypeTag>
|
||||||
struct EnableEnergy<TypeTag, TTag::EclFlowGasOilEnergyProblem> {
|
struct EnableEnergy<TypeTag, TTag::FlowGasOilEnergyProblem> {
|
||||||
static constexpr bool value = true;
|
static constexpr bool value = true;
|
||||||
};
|
};
|
||||||
template<class TypeTag>
|
template<class TypeTag>
|
||||||
struct Linearizer<TypeTag, TTag::EclFlowGasOilEnergyProblem> { using type = TpfaLinearizer<TypeTag>; };
|
struct Linearizer<TypeTag, TTag::FlowGasOilEnergyProblem> { using type = TpfaLinearizer<TypeTag>; };
|
||||||
|
|
||||||
template<class TypeTag>
|
template<class TypeTag>
|
||||||
struct LocalResidual<TypeTag, TTag::EclFlowGasOilEnergyProblem> { using type = BlackOilLocalResidualTPFA<TypeTag>; };
|
struct LocalResidual<TypeTag, TTag::FlowGasOilEnergyProblem> { using type = BlackOilLocalResidualTPFA<TypeTag>; };
|
||||||
|
|
||||||
template<class TypeTag>
|
template<class TypeTag>
|
||||||
struct EnableDiffusion<TypeTag, TTag::EclFlowGasOilEnergyProblem> { static constexpr bool value = true; };
|
struct EnableDiffusion<TypeTag, TTag::FlowGasOilEnergyProblem> { static constexpr bool value = true; };
|
||||||
|
|
||||||
template<class TypeTag>
|
template<class TypeTag>
|
||||||
struct EnableDispersion<TypeTag, TTag::EclFlowGasOilEnergyProblem> { static constexpr bool value = true; };
|
struct EnableDispersion<TypeTag, TTag::FlowGasOilEnergyProblem> { static constexpr bool value = true; };
|
||||||
|
|
||||||
}}
|
}}
|
||||||
|
|
||||||
@ -84,14 +84,14 @@ int flowEbosGasOilEnergyMain(int argc, char** argv, bool outputCout, bool output
|
|||||||
// with incorrect locale settings.
|
// with incorrect locale settings.
|
||||||
resetLocale();
|
resetLocale();
|
||||||
|
|
||||||
FlowMain<Properties::TTag::EclFlowGasOilEnergyProblem>
|
FlowMain<Properties::TTag::FlowGasOilEnergyProblem>
|
||||||
mainfunc {argc, argv, outputCout, outputFiles} ;
|
mainfunc {argc, argv, outputCout, outputFiles} ;
|
||||||
return mainfunc.execute();
|
return mainfunc.execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
int flowEbosGasOilEnergyMainStandalone(int argc, char** argv)
|
int flowEbosGasOilEnergyMainStandalone(int argc, char** argv)
|
||||||
{
|
{
|
||||||
using TypeTag = Properties::TTag::EclFlowGasOilEnergyProblem;
|
using TypeTag = Properties::TTag::FlowGasOilEnergyProblem;
|
||||||
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!
|
||||||
|
Loading…
Reference in New Issue
Block a user