mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
changed: remove TTAG macro calls
This commit is contained in:
parent
8148a81ed0
commit
82a35e53b7
@ -68,6 +68,6 @@ public:
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
typedef TTAG(EbosAltIdxTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Opm::Properties::TTag::EbosAltIdxTypeTag;
|
||||
return Opm::startEbos<ProblemTypeTag>(argc, argv);
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ namespace Opm {
|
||||
|
||||
bool ebosBlackOilDeckFileNameIsSet(int argc, char** argv)
|
||||
{
|
||||
typedef TTAG(EbosTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Properties::TTag::EbosTypeTag;
|
||||
|
||||
// use the ewoms parameter machinery and the blackoil vanguard to handle the grunt of
|
||||
// the work
|
||||
@ -52,7 +52,7 @@ bool ebosBlackOilDeckFileNameIsSet(int argc, char** argv)
|
||||
|
||||
std::string ebosBlackOilGetDeckFileName(int argc, char** argv)
|
||||
{
|
||||
typedef TTAG(EbosTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Properties::TTag::EbosTypeTag;
|
||||
typedef GET_PROP_TYPE(ProblemTypeTag, Vanguard) Vanguard;
|
||||
|
||||
// use the ewoms parameter machinery and the blackoil vanguard to handle the grunt of
|
||||
@ -72,7 +72,7 @@ std::string ebosBlackOilGetDeckFileName(int argc, char** argv)
|
||||
|
||||
std::unique_ptr<Opm::ParseContext> ebosBlackOilCreateParseContext(int argc, char** argv)
|
||||
{
|
||||
typedef TTAG(EbosTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Properties::TTag::EbosTypeTag;
|
||||
typedef GET_PROP_TYPE(ProblemTypeTag, Vanguard) Vanguard;
|
||||
|
||||
// use the ewoms parameter machinery and the blackoil vanguard to handle the grunt of
|
||||
@ -94,7 +94,7 @@ void ebosBlackOilSetDeck(Opm::Deck* deck,
|
||||
Opm::ErrorGuard* errorGuard,
|
||||
double externalSetupTime)
|
||||
{
|
||||
typedef TTAG(EbosTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Properties::TTag::EbosTypeTag;
|
||||
typedef GET_PROP_TYPE(ProblemTypeTag, Vanguard) Vanguard;
|
||||
|
||||
Vanguard::setExternalSetupTime(externalSetupTime);
|
||||
@ -105,7 +105,7 @@ void ebosBlackOilSetDeck(Opm::Deck* deck,
|
||||
|
||||
int ebosBlackOilMain(int argc, char **argv)
|
||||
{
|
||||
typedef TTAG(EbosTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Properties::TTag::EbosTypeTag;
|
||||
return Opm::startEbos<ProblemTypeTag>(argc, argv);
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ void ebosBrineSetDeck(Opm::Deck* deck,
|
||||
Opm::ErrorGuard* errorGuard,
|
||||
double externalSetupTime)
|
||||
{
|
||||
typedef TTAG(EbosBrineTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Properties::TTag::EbosBrineTypeTag;
|
||||
typedef GET_PROP_TYPE(ProblemTypeTag, Vanguard) Vanguard;
|
||||
|
||||
Vanguard::setExternalSetupTime(externalSetupTime);
|
||||
@ -57,7 +57,7 @@ void ebosBrineSetDeck(Opm::Deck* deck,
|
||||
|
||||
int ebosBrineMain(int argc, char **argv)
|
||||
{
|
||||
typedef TTAG(EbosBrineTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Properties::TTag::EbosBrineTypeTag;
|
||||
return Opm::startEbos<ProblemTypeTag>(argc, argv);
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ void ebosFoamSetDeck(Opm::Deck* deck,
|
||||
Opm::ErrorGuard* errorGuard,
|
||||
double externalSetupTime)
|
||||
{
|
||||
typedef TTAG(EbosFoamTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Properties::TTag::EbosFoamTypeTag;
|
||||
typedef GET_PROP_TYPE(ProblemTypeTag, Vanguard) Vanguard;
|
||||
|
||||
Vanguard::setExternalSetupTime(externalSetupTime);
|
||||
@ -57,7 +57,7 @@ void ebosFoamSetDeck(Opm::Deck* deck,
|
||||
|
||||
int ebosFoamMain(int argc, char **argv)
|
||||
{
|
||||
typedef TTAG(EbosFoamTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Properties::TTag::EbosFoamTypeTag;
|
||||
return Opm::startEbos<ProblemTypeTag>(argc, argv);
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,7 @@ private:
|
||||
// it is unfortunately not possible to simply use 'TypeTag' here because this leads
|
||||
// to cyclic definitions of some properties. if this happens the compiler error
|
||||
// messages unfortunately are *really* confusing and not really helpful.
|
||||
typedef typename GET_PROP_TYPE(TTAG(EbosTypeTag), FluidSystem) FluidSystem;
|
||||
typedef typename GET_PROP_TYPE(TTag::EbosTypeTag, FluidSystem) FluidSystem;
|
||||
|
||||
public:
|
||||
typedef Opm::BlackOilTwoPhaseIndices<GET_PROP_VALUE(TypeTag, EnableSolvent),
|
||||
@ -62,7 +62,7 @@ void ebosGasOilSetDeck(Opm::Deck* deck,
|
||||
Opm::ErrorGuard* errorGuard,
|
||||
double externalSetupTime)
|
||||
{
|
||||
typedef TTAG(EbosGasOilTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Properties::TTag::EbosGasOilTypeTag;
|
||||
typedef GET_PROP_TYPE(ProblemTypeTag, Vanguard) Vanguard;
|
||||
|
||||
Vanguard::setExternalSetupTime(externalSetupTime);
|
||||
@ -73,7 +73,7 @@ void ebosGasOilSetDeck(Opm::Deck* deck,
|
||||
|
||||
int ebosGasOilMain(int argc, char **argv)
|
||||
{
|
||||
typedef TTAG(EbosGasOilTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Properties::TTag::EbosGasOilTypeTag;
|
||||
return Opm::startEbos<ProblemTypeTag>(argc, argv);
|
||||
}
|
||||
|
||||
|
@ -41,7 +41,7 @@ private:
|
||||
// it is unfortunately not possible to simply use 'TypeTag' here because this leads
|
||||
// to cyclic definitions of some properties. if this happens the compiler error
|
||||
// messages unfortunately are *really* confusing and not really helpful.
|
||||
typedef typename GET_PROP_TYPE(TTAG(EbosTypeTag), FluidSystem) FluidSystem;
|
||||
typedef typename GET_PROP_TYPE(TTag::EbosTypeTag, FluidSystem) FluidSystem;
|
||||
|
||||
public:
|
||||
typedef Opm::BlackOilTwoPhaseIndices<GET_PROP_VALUE(TypeTag, EnableSolvent),
|
||||
@ -62,7 +62,7 @@ void ebosOilWaterSetDeck(Opm::Deck* deck,
|
||||
Opm::ErrorGuard* errorGuard,
|
||||
double externalSetupTime)
|
||||
{
|
||||
typedef TTAG(EbosOilWaterTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Properties::TTag::EbosOilWaterTypeTag;
|
||||
typedef GET_PROP_TYPE(ProblemTypeTag, Vanguard) Vanguard;
|
||||
|
||||
Vanguard::setExternalSetupTime(externalSetupTime);
|
||||
@ -73,7 +73,7 @@ void ebosOilWaterSetDeck(Opm::Deck* deck,
|
||||
|
||||
int ebosOilWaterMain(int argc, char **argv)
|
||||
{
|
||||
typedef TTAG(EbosOilWaterTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Properties::TTag::EbosOilWaterTypeTag;
|
||||
return Opm::startEbos<ProblemTypeTag>(argc, argv);
|
||||
}
|
||||
|
||||
|
@ -43,7 +43,7 @@ private:
|
||||
// it is unfortunately not possible to simply use 'TypeTag' here because this leads
|
||||
// to cyclic definitions of some properties. if this happens the compiler error
|
||||
// messages unfortunately are *really* confusing and not really helpful.
|
||||
typedef typename GET_PROP_TYPE(TTAG(EbosTypeTag), FluidSystem) FluidSystem;
|
||||
typedef typename GET_PROP_TYPE(TTag::EbosTypeTag, FluidSystem) FluidSystem;
|
||||
|
||||
public:
|
||||
typedef Opm::BlackOilTwoPhaseIndices<GET_PROP_VALUE(TypeTag, EnableSolvent),
|
||||
@ -64,7 +64,7 @@ void ebosOilWaterPolymerSetDeck(Opm::Deck* deck,
|
||||
Opm::ErrorGuard* errorGuard,
|
||||
double externalSetupTime)
|
||||
{
|
||||
typedef TTAG(EbosOilWaterPolymerTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Properties::TTag::EbosOilWaterPolymerTypeTag;
|
||||
typedef GET_PROP_TYPE(ProblemTypeTag, Vanguard) Vanguard;
|
||||
|
||||
Vanguard::setExternalSetupTime(externalSetupTime);
|
||||
@ -75,7 +75,7 @@ void ebosOilWaterPolymerSetDeck(Opm::Deck* deck,
|
||||
|
||||
int ebosOilWaterPolymerMain(int argc, char **argv)
|
||||
{
|
||||
typedef TTAG(EbosOilWaterPolymerTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Properties::TTag::EbosOilWaterPolymerTypeTag;
|
||||
return Opm::startEbos<ProblemTypeTag>(argc, argv);
|
||||
}
|
||||
|
||||
|
@ -39,6 +39,6 @@ NEW_TYPE_TAG(EbosPlainTypeTag, INHERITS_FROM(BlackOilModel, EclBaseProblem));
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
typedef TTAG(EbosPlainTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Opm::Properties::TTag::EbosPlainTypeTag;
|
||||
return Opm::start<ProblemTypeTag>(argc, argv);
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ void ebosPolymerSetDeck(Opm::Deck* deck,
|
||||
Opm::ErrorGuard* errorGuard,
|
||||
double externalSetupTime)
|
||||
{
|
||||
typedef TTAG(EbosPolymerTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Properties::TTag::EbosPolymerTypeTag;
|
||||
typedef GET_PROP_TYPE(ProblemTypeTag, Vanguard) Vanguard;
|
||||
|
||||
Vanguard::setExternalSetupTime(externalSetupTime);
|
||||
@ -57,7 +57,7 @@ void ebosPolymerSetDeck(Opm::Deck* deck,
|
||||
|
||||
int ebosPolymerMain(int argc, char **argv)
|
||||
{
|
||||
typedef TTAG(EbosPolymerTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Properties::TTag::EbosPolymerTypeTag;
|
||||
return Opm::startEbos<ProblemTypeTag>(argc, argv);
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ void ebosSolventSetDeck(Opm::Deck* deck,
|
||||
Opm::ErrorGuard* errorGuard,
|
||||
double externalSetupTime)
|
||||
{
|
||||
typedef TTAG(EbosSolventTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Properties::TTag::EbosSolventTypeTag;
|
||||
typedef GET_PROP_TYPE(ProblemTypeTag, Vanguard) Vanguard;
|
||||
|
||||
Vanguard::setExternalSetupTime(externalSetupTime);
|
||||
@ -57,7 +57,7 @@ void ebosSolventSetDeck(Opm::Deck* deck,
|
||||
|
||||
int ebosSolventMain(int argc, char **argv)
|
||||
{
|
||||
typedef TTAG(EbosSolventTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Properties::TTag::EbosSolventTypeTag;
|
||||
return Opm::startEbos<ProblemTypeTag>(argc, argv);
|
||||
}
|
||||
|
||||
|
@ -46,7 +46,7 @@ void ebosThermalSetDeck(Opm::Deck* deck,
|
||||
Opm::ErrorGuard* errorGuard,
|
||||
double externalSetupTime)
|
||||
{
|
||||
typedef TTAG(EbosThermalTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Properties::TTag::EbosThermalTypeTag;
|
||||
typedef GET_PROP_TYPE(ProblemTypeTag, Vanguard) Vanguard;
|
||||
|
||||
Vanguard::setExternalSetupTime(externalSetupTime);
|
||||
@ -57,7 +57,7 @@ void ebosThermalSetDeck(Opm::Deck* deck,
|
||||
|
||||
int ebosThermalMain(int argc, char **argv)
|
||||
{
|
||||
typedef TTAG(EbosThermalTypeTag) ProblemTypeTag;
|
||||
using ProblemTypeTag = Properties::TTag::EbosThermalTypeTag;
|
||||
return Opm::startEbos<ProblemTypeTag>(argc, argv);
|
||||
}
|
||||
|
||||
|
@ -70,7 +70,7 @@ namespace Opm {
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
using TypeTag = TTAG(EclFlowProblemSimple);
|
||||
using TypeTag = Opm::Properties::TTag::EclFlowProblemSimple;
|
||||
auto mainObject = Opm::Main(argc, argv);
|
||||
return mainObject.runStatic<TypeTag>();
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ namespace Opm {
|
||||
|
||||
void flowEbosBlackoilSetDeck(double setupTime, Deck *deck, EclipseState& eclState, Schedule& schedule, SummaryConfig& summaryConfig)
|
||||
{
|
||||
typedef TTAG(EclFlowProblem) TypeTag;
|
||||
using TypeTag = Properties::TTag::EclFlowProblem;
|
||||
typedef GET_PROP_TYPE(TypeTag, Vanguard) Vanguard;
|
||||
|
||||
Vanguard::setExternalSetupTime(setupTime);
|
||||
@ -46,7 +46,7 @@ void flowEbosBlackoilSetDeck(double setupTime, Deck *deck, EclipseState& eclStat
|
||||
Vanguard::setExternalSummaryConfig(&summaryConfig);
|
||||
}
|
||||
|
||||
std::unique_ptr<Opm::FlowMainEbos<TTAG(EclFlowProblem)>>
|
||||
std::unique_ptr<Opm::FlowMainEbos<Properties::TTag::EclFlowProblem>>
|
||||
flowEbosBlackoilMainInit(int argc, char** argv, bool outputCout, bool outputFiles)
|
||||
{
|
||||
// we always want to use the default locale, and thus spare us the trouble
|
||||
@ -59,7 +59,7 @@ flowEbosBlackoilMainInit(int argc, char** argv, bool outputCout, bool outputFile
|
||||
Dune::MPIHelper::instance(argc, argv);
|
||||
#endif
|
||||
|
||||
return std::make_unique<Opm::FlowMainEbos<TTAG(EclFlowProblem)>>(
|
||||
return std::make_unique<Opm::FlowMainEbos<Properties::TTag::EclFlowProblem>>(
|
||||
argc, argv, outputCout, outputFiles);
|
||||
}
|
||||
|
||||
|
@ -28,7 +28,7 @@ void flowEbosBlackoilSetDeck(double setupTime, Deck *deck, EclipseState& eclStat
|
||||
|
||||
int flowEbosBlackoilMain(int argc, char** argv, bool outputCout, bool outputFiles);
|
||||
|
||||
std::unique_ptr<Opm::FlowMainEbos<TTAG(EclFlowProblem)>>
|
||||
std::unique_ptr<Opm::FlowMainEbos<Properties::TTag::EclFlowProblem>>
|
||||
flowEbosBlackoilMainInit(int argc, char** argv, bool outputCout, bool outputFiles);
|
||||
}
|
||||
|
||||
|
@ -38,7 +38,7 @@ SET_BOOL_PROP(EclFlowBrineProblem, EnableBrine, true);
|
||||
namespace Opm {
|
||||
void flowEbosBrineSetDeck(double setupTime, Deck *deck, EclipseState& eclState, Schedule& schedule, SummaryConfig& summaryConfig)
|
||||
{
|
||||
typedef TTAG(EclFlowBrineProblem) TypeTag;
|
||||
using TypeTag = Properties::TTag::EclFlowBrineProblem;
|
||||
typedef GET_PROP_TYPE(TypeTag, Vanguard) Vanguard;
|
||||
|
||||
Vanguard::setExternalSetupTime(setupTime);
|
||||
@ -63,7 +63,7 @@ int flowEbosBrineMain(int argc, char** argv, bool outputCout, bool outputFiles)
|
||||
Dune::MPIHelper::instance(argc, argv).rank();
|
||||
#endif
|
||||
|
||||
Opm::FlowMainEbos<TTAG(EclFlowBrineProblem)>
|
||||
Opm::FlowMainEbos<Properties::TTag::EclFlowBrineProblem>
|
||||
mainfunc {argc, argv, outputCout, outputFiles};
|
||||
return mainfunc.execute();
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ SET_BOOL_PROP(EclFlowEnergyProblem, EnableEnergy, true);
|
||||
namespace Opm {
|
||||
void flowEbosEnergySetDeck(double setupTime, Deck *deck, EclipseState& eclState, Schedule& schedule, SummaryConfig& summaryConfig)
|
||||
{
|
||||
typedef TTAG(EclFlowEnergyProblem) TypeTag;
|
||||
using TypeTag = Properties::TTag::EclFlowEnergyProblem;
|
||||
typedef GET_PROP_TYPE(TypeTag, Vanguard) Vanguard;
|
||||
|
||||
Vanguard::setExternalSetupTime(setupTime);
|
||||
@ -62,7 +62,7 @@ int flowEbosEnergyMain(int argc, char** argv, bool outputCout, bool outputFiles)
|
||||
Dune::MPIHelper::instance(argc, argv).rank();
|
||||
#endif
|
||||
|
||||
Opm::FlowMainEbos<TTAG(EclFlowEnergyProblem)>
|
||||
Opm::FlowMainEbos<Properties::TTag::EclFlowEnergyProblem>
|
||||
mainfunc {argc, argv, outputCout, outputFiles};
|
||||
return mainfunc.execute();
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ SET_BOOL_PROP(EclFlowFoamProblem, EnableFoam, true);
|
||||
namespace Opm {
|
||||
void flowEbosFoamSetDeck(double setupTime, Deck *deck, EclipseState& eclState, Schedule& schedule, SummaryConfig& summaryConfig)
|
||||
{
|
||||
typedef TTAG(EclFlowFoamProblem) TypeTag;
|
||||
using TypeTag = Properties::TTag::EclFlowFoamProblem;
|
||||
typedef GET_PROP_TYPE(TypeTag, Vanguard) Vanguard;
|
||||
|
||||
Vanguard::setExternalSetupTime(setupTime);
|
||||
@ -63,7 +63,7 @@ int flowEbosFoamMain(int argc, char** argv, bool outputCout, bool outputFiles)
|
||||
Dune::MPIHelper::instance(argc, argv).rank();
|
||||
#endif
|
||||
|
||||
Opm::FlowMainEbos<TTAG(EclFlowFoamProblem)>
|
||||
Opm::FlowMainEbos<Properties::TTag::EclFlowFoamProblem>
|
||||
mainfunc {argc, argv, outputCout, outputFiles};
|
||||
return mainfunc.execute();
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ private:
|
||||
// it is unfortunately not possible to simply use 'TypeTag' here because this leads
|
||||
// to cyclic definitions of some properties. if this happens the compiler error
|
||||
// messages unfortunately are *really* confusing and not really helpful.
|
||||
typedef TTAG(EclFlowProblem) BaseTypeTag;
|
||||
using BaseTypeTag = TTag::EclFlowProblem;
|
||||
typedef typename GET_PROP_TYPE(BaseTypeTag, FluidSystem) FluidSystem;
|
||||
|
||||
public:
|
||||
@ -62,7 +62,7 @@ public:
|
||||
namespace Opm {
|
||||
void flowEbosGasOilSetDeck(double setupTime, Deck *deck, EclipseState& eclState, Schedule& schedule, SummaryConfig& summaryConfig)
|
||||
{
|
||||
typedef TTAG(EclFlowGasOilProblem) TypeTag;
|
||||
using TypeTag = Properties::TTag::EclFlowGasOilProblem;
|
||||
typedef GET_PROP_TYPE(TypeTag, Vanguard) Vanguard;
|
||||
|
||||
Vanguard::setExternalSetupTime(setupTime);
|
||||
@ -86,7 +86,7 @@ int flowEbosGasOilMain(int argc, char** argv, bool outputCout, bool outputFiles)
|
||||
Dune::MPIHelper::instance(argc, argv);
|
||||
#endif
|
||||
|
||||
Opm::FlowMainEbos<TTAG(EclFlowGasOilProblem)>
|
||||
Opm::FlowMainEbos<Properties::TTag::EclFlowGasOilProblem>
|
||||
mainfunc {argc, argv, outputCout, outputFiles} ;
|
||||
return mainfunc.execute();
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ private:
|
||||
// it is unfortunately not possible to simply use 'TypeTag' here because this leads
|
||||
// to cyclic definitions of some properties. if this happens the compiler error
|
||||
// messages unfortunately are *really* confusing and not really helpful.
|
||||
typedef TTAG(EclFlowProblem) BaseTypeTag;
|
||||
using BaseTypeTag = TTag::EclFlowProblem;
|
||||
typedef typename GET_PROP_TYPE(BaseTypeTag, FluidSystem) FluidSystem;
|
||||
|
||||
public:
|
||||
@ -62,7 +62,7 @@ public:
|
||||
namespace Opm {
|
||||
void flowEbosOilWaterSetDeck(double setupTime, Deck *deck, EclipseState& eclState, Schedule& schedule, SummaryConfig& summaryConfig)
|
||||
{
|
||||
typedef TTAG(EclFlowOilWaterProblem) TypeTag;
|
||||
using TypeTag = Properties::TTag::EclFlowOilWaterProblem;
|
||||
typedef GET_PROP_TYPE(TypeTag, Vanguard) Vanguard;
|
||||
|
||||
Vanguard::setExternalSetupTime(setupTime);
|
||||
@ -85,7 +85,7 @@ int flowEbosOilWaterMain(int argc, char** argv, bool outputCout, bool outputFile
|
||||
Dune::MPIHelper::instance(argc, argv);
|
||||
#endif
|
||||
|
||||
Opm::FlowMainEbos<TTAG(EclFlowOilWaterProblem)>
|
||||
Opm::FlowMainEbos<Properties::TTag::EclFlowOilWaterProblem>
|
||||
mainfunc {argc, argv, outputCout, outputFiles};
|
||||
return mainfunc.execute();
|
||||
}
|
||||
|
@ -45,7 +45,7 @@ private:
|
||||
// it is unfortunately not possible to simply use 'TypeTag' here because this leads
|
||||
// to cyclic definitions of some properties. if this happens the compiler error
|
||||
// messages unfortunately are *really* confusing and not really helpful.
|
||||
typedef TTAG(EclFlowProblem) BaseTypeTag;
|
||||
using BaseTypeTag = TTag::EclFlowProblem;
|
||||
typedef typename GET_PROP_TYPE(BaseTypeTag, FluidSystem) FluidSystem;
|
||||
|
||||
public:
|
||||
@ -62,7 +62,7 @@ public:
|
||||
namespace Opm {
|
||||
void flowEbosOilWaterBrineSetDeck(double setupTime, Deck* deck, EclipseState& eclState, Schedule& schedule, SummaryConfig& summaryConfig)
|
||||
{
|
||||
typedef TTAG(EclFlowOilWaterBrineProblem) TypeTag;
|
||||
using TypeTag = Properties::TTag::EclFlowOilWaterBrineProblem;
|
||||
typedef GET_PROP_TYPE(TypeTag, Vanguard) Vanguard;
|
||||
|
||||
Vanguard::setExternalSetupTime(setupTime);
|
||||
@ -85,7 +85,7 @@ int flowEbosOilWaterBrineMain(int argc, char** argv, bool outputCout, bool outpu
|
||||
Dune::MPIHelper::instance(argc, argv);
|
||||
#endif
|
||||
|
||||
Opm::FlowMainEbos<TTAG(EclFlowOilWaterBrineProblem)>
|
||||
Opm::FlowMainEbos<Properties::TTag::EclFlowOilWaterBrineProblem>
|
||||
mainfunc {argc, argv, outputCout, outputFiles};
|
||||
return mainfunc.execute();
|
||||
}
|
||||
|
@ -46,7 +46,7 @@ private:
|
||||
// it is unfortunately not possible to simply use 'TypeTag' here because this leads
|
||||
// to cyclic definitions of some properties. if this happens the compiler error
|
||||
// messages unfortunately are *really* confusing and not really helpful.
|
||||
typedef TTAG(EclFlowProblem) BaseTypeTag;
|
||||
using BaseTypeTag = TTag::EclFlowProblem;
|
||||
typedef typename GET_PROP_TYPE(BaseTypeTag, FluidSystem) FluidSystem;
|
||||
|
||||
public:
|
||||
@ -63,7 +63,7 @@ public:
|
||||
namespace Opm {
|
||||
void flowEbosOilWaterPolymerSetDeck(double setupTime, Deck* deck, EclipseState& eclState, Schedule& schedule, SummaryConfig& summaryConfig)
|
||||
{
|
||||
typedef TTAG(EclFlowOilWaterPolymerProblem) TypeTag;
|
||||
using TypeTag = Properties::TTag::EclFlowOilWaterPolymerProblem;
|
||||
typedef GET_PROP_TYPE(TypeTag, Vanguard) Vanguard;
|
||||
|
||||
Vanguard::setExternalSetupTime(setupTime);
|
||||
@ -86,7 +86,7 @@ int flowEbosOilWaterPolymerMain(int argc, char** argv, bool outputCout, bool out
|
||||
Dune::MPIHelper::instance(argc, argv);
|
||||
#endif
|
||||
|
||||
Opm::FlowMainEbos<TTAG(EclFlowOilWaterPolymerProblem)>
|
||||
Opm::FlowMainEbos<Properties::TTag::EclFlowOilWaterPolymerProblem>
|
||||
mainfunc {argc, argv, outputCout, outputFiles};
|
||||
return mainfunc.execute();
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ private:
|
||||
// it is unfortunately not possible to simply use 'TypeTag' here because this leads
|
||||
// to cyclic definitions of some properties. if this happens the compiler error
|
||||
// messages unfortunately are *really* confusing and not really helpful.
|
||||
typedef TTAG(EclFlowProblem) BaseTypeTag;
|
||||
using BaseTypeTag = TTag::EclFlowProblem;
|
||||
typedef typename GET_PROP_TYPE(BaseTypeTag, FluidSystem) FluidSystem;
|
||||
|
||||
public:
|
||||
@ -65,7 +65,7 @@ public:
|
||||
namespace Opm {
|
||||
/* void flowEbosOilWaterPolymerInjectivitySetDeck(Deck& deck, EclipseState& eclState)
|
||||
{
|
||||
typedef TTAG(EclFlowOilWaterPolymerInjectivityProblem) TypeTag;
|
||||
using TypeTag = Properties::TTag::EclFlowOilWaterPolymerInjectivityProblem;
|
||||
typedef GET_PROP_TYPE(TypeTag, Vanguard) Vanguard;
|
||||
|
||||
Vanguard::setExternalDeck(&deck, &eclState);
|
||||
@ -84,7 +84,7 @@ int flowEbosOilWaterPolymerInjectivityMain(int argc, char** argv, bool outputCou
|
||||
Dune::MPIHelper::instance(argc, argv);
|
||||
#endif
|
||||
|
||||
Opm::FlowMainEbos<TTAG(EclFlowOilWaterPolymerInjectivityProblem)>
|
||||
Opm::FlowMainEbos<Properties::TTag::EclFlowOilWaterPolymerInjectivityProblem>
|
||||
mainfunc {argc, argv, outputCout, outputFiles};
|
||||
return mainfunc.execute();
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ SET_BOOL_PROP(EclFlowPolymerProblem, EnablePolymer, true);
|
||||
namespace Opm {
|
||||
void flowEbosPolymerSetDeck(double setupTime, Deck *deck, EclipseState& eclState, Schedule& schedule, SummaryConfig& summaryConfig)
|
||||
{
|
||||
typedef TTAG(EclFlowPolymerProblem) TypeTag;
|
||||
using TypeTag = Properties::TTag::EclFlowPolymerProblem;
|
||||
typedef GET_PROP_TYPE(TypeTag, Vanguard) Vanguard;
|
||||
|
||||
Vanguard::setExternalSetupTime(setupTime);
|
||||
@ -62,7 +62,7 @@ int flowEbosPolymerMain(int argc, char** argv, bool outputCout, bool outputFiles
|
||||
Dune::MPIHelper::instance(argc, argv).rank();
|
||||
#endif
|
||||
|
||||
Opm::FlowMainEbos<TTAG(EclFlowPolymerProblem)>
|
||||
Opm::FlowMainEbos<Properties::TTag::EclFlowPolymerProblem>
|
||||
mainfunc {argc, argv, outputCout, outputFiles};
|
||||
return mainfunc.execute();
|
||||
}
|
||||
|
@ -38,7 +38,7 @@ SET_BOOL_PROP(EclFlowSolventProblem, EnableSolvent, true);
|
||||
namespace Opm {
|
||||
void flowEbosSolventSetDeck(double setupTime, Deck *deck, EclipseState& eclState, Schedule& schedule, SummaryConfig& summaryConfig)
|
||||
{
|
||||
typedef TTAG(EclFlowSolventProblem) TypeTag;
|
||||
using TypeTag = Properties::TTag::EclFlowSolventProblem;
|
||||
typedef GET_PROP_TYPE(TypeTag, Vanguard) Vanguard;
|
||||
|
||||
Vanguard::setExternalSetupTime(setupTime);
|
||||
@ -63,7 +63,7 @@ int flowEbosSolventMain(int argc, char** argv, bool outputCout, bool outputFiles
|
||||
Dune::MPIHelper::instance(argc, argv).rank();
|
||||
#endif
|
||||
|
||||
Opm::FlowMainEbos<TTAG(EclFlowSolventProblem)>
|
||||
Opm::FlowMainEbos<Properties::TTag::EclFlowSolventProblem>
|
||||
mainfunc {argc, argv, outputCout, outputFiles};
|
||||
return mainfunc.execute();
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ private:
|
||||
// it is unfortunately not possible to simply use 'TypeTag' here because this leads
|
||||
// to cyclic definitions of some properties. if this happens the compiler error
|
||||
// messages unfortunately are *really* confusing and not really helpful.
|
||||
typedef TTAG(EclFlowProblem) BaseTypeTag;
|
||||
using BaseTypeTag = TTag::EclFlowProblem;
|
||||
typedef typename GET_PROP_TYPE(BaseTypeTag, FluidSystem) FluidSystem;
|
||||
|
||||
public:
|
||||
@ -51,7 +51,7 @@ public:
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
using TypeTag = TTAG(EclFlowProblemSimple);
|
||||
using TypeTag = Opm::Properties::TTag::EclFlowProblemSimple;
|
||||
auto mainObject = Opm::Main(argc, argv);
|
||||
return mainObject.runStatic<TypeTag>();
|
||||
}
|
||||
|
@ -33,7 +33,7 @@ private:
|
||||
// it is unfortunately not possible to simply use 'TypeTag' here because this leads
|
||||
// to cyclic definitions of some properties. if this happens the compiler error
|
||||
// messages unfortunately are *really* confusing and not really helpful.
|
||||
typedef TTAG(EclFlowProblem) BaseTypeTag;
|
||||
using BaseTypeTag = TTag::EclFlowProblem;
|
||||
typedef typename GET_PROP_TYPE(BaseTypeTag, FluidSystem) FluidSystem;
|
||||
|
||||
public:
|
||||
@ -51,7 +51,7 @@ public:
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
using TypeTag = TTAG(EclFlowProblemSimple);
|
||||
using TypeTag = Opm::Properties::TTag::EclFlowProblemSimple;
|
||||
auto mainObject = Opm::Main(argc, argv);
|
||||
return mainObject.runStatic<TypeTag>();
|
||||
}
|
||||
|
@ -118,7 +118,7 @@ namespace Opm
|
||||
class Main
|
||||
{
|
||||
private:
|
||||
using FlowMainEbosType = Opm::FlowMainEbos<TTAG(EclFlowProblem)>;
|
||||
using FlowMainEbosType = Opm::FlowMainEbos<Opm::Properties::TTag::EclFlowProblem>;
|
||||
|
||||
enum class FileOutputMode {
|
||||
//! \brief No output to files.
|
||||
@ -159,7 +159,7 @@ namespace Opm
|
||||
int runDynamic()
|
||||
{
|
||||
int exitCode = EXIT_SUCCESS;
|
||||
if (initialize_<TTAG(FlowEarlyBird)>(exitCode)) {
|
||||
if (initialize_<Properties::TTag::FlowEarlyBird>(exitCode)) {
|
||||
return dispatchDynamic_();
|
||||
} else {
|
||||
return exitCode;
|
||||
@ -184,7 +184,7 @@ namespace Opm
|
||||
std::unique_ptr<FlowMainEbosType> initFlowEbosBlackoil(int& exitCode)
|
||||
{
|
||||
exitCode = EXIT_SUCCESS;
|
||||
if (initialize_<TTAG(FlowEarlyBird)>(exitCode)) {
|
||||
if (initialize_<Properties::TTag::FlowEarlyBird>(exitCode)) {
|
||||
// TODO: check that this deck really represents a blackoil
|
||||
// case. E.g. check that number of phases == 3
|
||||
Opm::flowEbosBlackoilSetDeck(
|
||||
|
@ -125,7 +125,7 @@ initSimulator(const char *filename)
|
||||
|
||||
void test_summary()
|
||||
{
|
||||
typedef typename TTAG(TestEclOutputTypeTag) TypeTag;
|
||||
using TypeTag = Opm::Properties::TTag::TestEclOutputTypeTag;
|
||||
const std::string filename = "SUMMARY_DECK_NON_CONSTANT_POROSITY.DATA";
|
||||
const std::string casename = "SUMMARY_DECK_NON_CONSTANT_POROSITY";
|
||||
|
||||
@ -270,7 +270,7 @@ int main(int argc, char** argv)
|
||||
Dune::MPIHelper::instance(argc, argv);
|
||||
#endif
|
||||
|
||||
typedef TTAG(TestEclOutputTypeTag) TypeTag;
|
||||
using TypeTag = Opm::Properties::TTag::TestEclOutputTypeTag;
|
||||
Opm::registerAllParameters_<TypeTag>();
|
||||
test_summary();
|
||||
test_readWriteWells();
|
||||
|
@ -179,7 +179,7 @@ void test_PhasePressure()
|
||||
{
|
||||
const auto record = mkEquilRecord( 0, 1e5, 5, 0, 0, 0 );
|
||||
|
||||
using TypeTag = TTAG(TestEquilTypeTag);
|
||||
using TypeTag = Opm::Properties::TTag::TestEquilTypeTag;
|
||||
using FluidSystem = GET_PROP_TYPE(TypeTag, FluidSystem);
|
||||
|
||||
using TabulatedFunction = Opm::Tabulated1DFunction<double>;
|
||||
@ -228,7 +228,7 @@ void test_CellSubset()
|
||||
{
|
||||
using PVal = std::vector<double>;
|
||||
using PPress = std::vector<PVal>;
|
||||
using TypeTag = TTAG(TestEquilTypeTag);
|
||||
using TypeTag = Opm::Properties::TTag::TestEquilTypeTag;
|
||||
using FluidSystem = GET_PROP_TYPE(TypeTag, FluidSystem);
|
||||
|
||||
auto simulator = initSimulator<TypeTag>("equil_base.DATA");
|
||||
@ -339,7 +339,7 @@ void test_RegMapping()
|
||||
|
||||
using PVal = std::vector<double>;
|
||||
using PPress = std::vector<PVal>;
|
||||
using TypeTag = TTAG(TestEquilTypeTag);
|
||||
using TypeTag = Opm::Properties::TTag::TestEquilTypeTag;
|
||||
using FluidSystem = GET_PROP_TYPE(TypeTag, FluidSystem);
|
||||
|
||||
auto simulator = initSimulator<TypeTag>("equil_base.DATA");
|
||||
@ -439,7 +439,7 @@ void test_RegMapping()
|
||||
|
||||
void test_DeckAllDead()
|
||||
{
|
||||
typedef TTAG(TestEquilTypeTag) TypeTag;
|
||||
using TypeTag = Opm::Properties::TTag::TestEquilTypeTag;
|
||||
typedef typename GET_PROP_TYPE(TypeTag, FluidSystem) FluidSystem;
|
||||
auto simulator = initSimulator<TypeTag>("equil_deadfluids.DATA");
|
||||
const auto& eclipseState = simulator->vanguard().eclState();
|
||||
@ -465,7 +465,7 @@ void test_DeckAllDead()
|
||||
void test_CapillaryInversion()
|
||||
{
|
||||
// Test setup.
|
||||
typedef typename TTAG(TestEquilTypeTag) TypeTag;
|
||||
using TypeTag = Opm::Properties::TTag::TestEquilTypeTag;
|
||||
typedef typename GET_PROP_TYPE(TypeTag, FluidSystem) FluidSystem;
|
||||
typedef typename GET_PROP_TYPE(TypeTag, MaterialLaw) MaterialLaw;
|
||||
typedef typename GET_PROP(TypeTag, MaterialLaw)::EclMaterialLawManager MaterialLawManager;
|
||||
@ -515,7 +515,7 @@ void test_CapillaryInversion()
|
||||
|
||||
void test_DeckWithCapillary()
|
||||
{
|
||||
typedef typename TTAG(TestEquilTypeTag) TypeTag;
|
||||
using TypeTag = Opm::Properties::TTag::TestEquilTypeTag;
|
||||
typedef typename GET_PROP_TYPE(TypeTag, FluidSystem) FluidSystem;
|
||||
auto simulator = initSimulator<TypeTag>("equil_capillary.DATA");
|
||||
auto& eclipseState = simulator->vanguard().eclState();
|
||||
@ -553,7 +553,7 @@ void test_DeckWithCapillary()
|
||||
|
||||
void test_DeckWithCapillaryOverlap()
|
||||
{
|
||||
typedef typename TTAG(TestEquilTypeTag) TypeTag;
|
||||
using TypeTag = Opm::Properties::TTag::TestEquilTypeTag;
|
||||
typedef typename GET_PROP_TYPE(TypeTag, FluidSystem) FluidSystem;
|
||||
auto simulator = initSimulator<TypeTag>("equil_capillary_overlap.DATA");
|
||||
const auto& eclipseState = simulator->vanguard().eclState();
|
||||
@ -611,7 +611,7 @@ void test_DeckWithCapillaryOverlap()
|
||||
|
||||
void test_DeckWithLiveOil()
|
||||
{
|
||||
typedef typename TTAG(TestEquilTypeTag) TypeTag;
|
||||
using TypeTag = Opm::Properties::TTag::TestEquilTypeTag;
|
||||
typedef typename GET_PROP_TYPE(TypeTag, FluidSystem) FluidSystem;
|
||||
auto simulator = initSimulator<TypeTag>("equil_liveoil.DATA");
|
||||
const auto& eclipseState = simulator->vanguard().eclState();
|
||||
@ -687,7 +687,7 @@ void test_DeckWithLiveOil()
|
||||
|
||||
void test_DeckWithLiveGas()
|
||||
{
|
||||
typedef typename TTAG(TestEquilTypeTag) TypeTag;
|
||||
using TypeTag = Opm::Properties::TTag::TestEquilTypeTag;
|
||||
typedef typename GET_PROP_TYPE(TypeTag, FluidSystem) FluidSystem;
|
||||
auto simulator = initSimulator<TypeTag>("equil_livegas.DATA");
|
||||
const auto& eclipseState = simulator->vanguard().eclState();
|
||||
@ -765,7 +765,7 @@ void test_DeckWithLiveGas()
|
||||
|
||||
void test_DeckWithRSVDAndRVVD()
|
||||
{
|
||||
typedef typename TTAG(TestEquilTypeTag) TypeTag;
|
||||
using TypeTag = Opm::Properties::TTag::TestEquilTypeTag;
|
||||
typedef typename GET_PROP_TYPE(TypeTag, FluidSystem) FluidSystem;
|
||||
auto simulator = initSimulator<TypeTag>("equil_rsvd_and_rvvd.DATA");
|
||||
const auto& eclipseState = simulator->vanguard().eclState();
|
||||
@ -863,7 +863,7 @@ void test_DeckWithRSVDAndRVVD()
|
||||
|
||||
void test_DeckWithPBVDAndPDVD()
|
||||
{
|
||||
typedef typename TTAG(TestEquilTypeTag) TypeTag;
|
||||
using TypeTag = Opm::Properties::TTag::TestEquilTypeTag;
|
||||
typedef typename GET_PROP_TYPE(TypeTag, FluidSystem) FluidSystem;
|
||||
auto simulator = initSimulator<TypeTag>("equil_pbvd_and_pdvd.DATA");
|
||||
const auto& eclipseState = simulator->vanguard().eclState();
|
||||
@ -954,7 +954,7 @@ void test_DeckWithPBVDAndPDVD()
|
||||
void test_DeckWithSwatinit()
|
||||
{
|
||||
#if 0
|
||||
typedef typename TTAG(TestEquilTypeTag) TypeTag;
|
||||
using TypeTag = Opm::Properties::TTag::TestEquilTypeTag;
|
||||
auto simulator = initSimulator<TypeTag>("equil_capillary_swatinit.DATA");
|
||||
const auto& eclipseState = simulator->vanguard().eclState();
|
||||
Opm::GridManager gm(eclipseState.getInputGrid());
|
||||
@ -1106,7 +1106,7 @@ try {
|
||||
Dune::MPIHelper::instance(argc, argv);
|
||||
#endif
|
||||
|
||||
typedef TTAG(TestEquilTypeTag) TypeTag;
|
||||
using TypeTag = Opm::Properties::TTag::TestEquilTypeTag;
|
||||
Opm::registerAllParameters_<TypeTag>();
|
||||
|
||||
test_PhasePressure();
|
||||
|
@ -57,7 +57,7 @@
|
||||
|
||||
|
||||
|
||||
using StandardWell = Opm::StandardWell<TTAG(EclFlowProblem)>;
|
||||
using StandardWell = Opm::StandardWell<Opm::Properties::TTag::EclFlowProblem>;
|
||||
|
||||
struct SetupTest {
|
||||
|
||||
@ -100,7 +100,7 @@ struct GlobalFixture {
|
||||
Dune::MPIHelper::instance(argcDummy, argvDummy);
|
||||
#endif
|
||||
|
||||
Opm::FlowMainEbos<TTAG(EclFlowProblem)>::setupParameters_(argcDummy, argvDummy);
|
||||
Opm::FlowMainEbos<Opm::Properties::TTag::EclFlowProblem>::setupParameters_(argcDummy, argvDummy);
|
||||
}
|
||||
};
|
||||
|
||||
@ -111,7 +111,7 @@ BOOST_AUTO_TEST_CASE(TestStandardWellInput) {
|
||||
const auto& wells_ecl = setup_test.schedule->getWells(setup_test.current_timestep);
|
||||
BOOST_CHECK_EQUAL( wells_ecl.size(), 2);
|
||||
const Opm::Well& well = wells_ecl[1];
|
||||
const Opm::BlackoilModelParametersEbos<TTAG(EclFlowProblem) > param;
|
||||
const Opm::BlackoilModelParametersEbos<Opm::Properties::TTag::EclFlowProblem> param;
|
||||
|
||||
// For the conversion between the surface volume rate and resrevoir voidage rate
|
||||
typedef Opm::BlackOilFluidSystem<double> FluidSystem;
|
||||
@ -139,7 +139,7 @@ BOOST_AUTO_TEST_CASE(TestBehavoir) {
|
||||
|
||||
{
|
||||
const int nw = wells_ecl.size();
|
||||
const Opm::BlackoilModelParametersEbos<TTAG(EclFlowProblem)> param;
|
||||
const Opm::BlackoilModelParametersEbos<Opm::Properties::TTag::EclFlowProblem> param;
|
||||
|
||||
for (int w = 0; w < nw; ++w) {
|
||||
// For the conversion between the surface volume rate and resrevoir voidage rate
|
||||
|
Loading…
Reference in New Issue
Block a user