rename TTag::EclFlowProblem to TTag::FlowProblem

This commit is contained in:
Arne Morten Kvarving
2024-02-06 14:47:31 +01:00
parent 12cc0d7c5b
commit 67c9bba4c9
40 changed files with 93 additions and 101 deletions

View File

@@ -41,7 +41,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowProblemAlugrid {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}

View File

@@ -39,7 +39,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowProblemPoly {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}

View File

@@ -61,7 +61,7 @@ std::vector<int> loadBalanceInZOnly(const Dune::CpGrid& grid)
int main(int argc, char** argv)
{
auto mainObject = std::make_unique<Opm::Main>(argc, argv);
Opm::EclCpGridVanguard<Opm::Properties::TTag::EclFlowProblem>::setExternalLoadBalancer(loadBalanceInZOnly);
Opm::EclCpGridVanguard<Opm::Properties::TTag::FlowProblem>::setExternalLoadBalancer(loadBalanceInZOnly);
auto ret = mainObject->runDynamic();
// Destruct mainObject as the destructor calls MPI_Finalize!
mainObject.reset();

View File

@@ -19,23 +19,15 @@
#include <memory>
namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowProblem;
struct EclFlowProblemTPFA {
using InheritsFrom = std::tuple<EclFlowProblem>;
};
}
}
namespace Opm::Properties::TTag {
struct FlowProblem;
struct EclFlowProblemTPFA {
using InheritsFrom = std::tuple<FlowProblem>;
};
}
namespace Opm {
//! \brief Main function used in flow binary.
int flowEbosBlackoilTpfaMain(int argc, char** argv, bool outputCout, bool outputFiles);

View File

@@ -24,14 +24,14 @@
namespace Opm {
std::unique_ptr<FlowMain<Properties::TTag::EclFlowProblem>>
std::unique_ptr<FlowMain<Properties::TTag::FlowProblem>>
flowEbosBlackoilMainInit(int argc, char** argv, bool outputCout, bool outputFiles)
{
// we always want to use the default locale, and thus spare us the trouble
// with incorrect locale settings.
resetLocale();
return std::make_unique<FlowMain<Properties::TTag::EclFlowProblem>>(
return std::make_unique<FlowMain<Properties::TTag::FlowProblem>>(
argc, argv, outputCout, outputFiles);
}
@@ -44,7 +44,7 @@ int flowEbosBlackoilMain(int argc, char** argv, bool outputCout, bool outputFile
int flowEbosBlackoilMainStandalone(int argc, char** argv)
{
using TypeTag = Properties::TTag::EclFlowProblem;
using TypeTag = Properties::TTag::FlowProblem;
auto mainObject = std::make_unique<Opm::Main>(argc, argv);
auto ret = mainObject->runStatic<TypeTag>();
// Destruct mainObject as the destructor calls MPI_Finalize!

View File

@@ -26,13 +26,13 @@ template<class TypeTag> class FlowMain;
namespace Action {
class State;
}
namespace Properties { namespace TTag { struct EclFlowProblem; } }
namespace Properties { namespace TTag { struct FlowProblem; } }
//! \brief Main function used in flow binary.
int flowEbosBlackoilMain(int argc, char** argv, bool outputCout, bool outputFiles);
//! \brief Initialization function used in flow binary and python simulator.
std::unique_ptr<FlowMain<Properties::TTag::EclFlowProblem>>
std::unique_ptr<FlowMain<Properties::TTag::FlowProblem>>
flowEbosBlackoilMainInit(int argc, char** argv, bool outputCout, bool outputFiles);
//! \brief Main function used in flow_blackoil binary.

View File

@@ -27,7 +27,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowBrineProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
template<class TypeTag>

View File

@@ -21,7 +21,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowBrineProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
template<class TypeTag>

View File

@@ -27,7 +27,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowBrinePrecsaltVapwatProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
template<class TypeTag>

View File

@@ -27,7 +27,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowBrineSaltPrecipitationProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
template<class TypeTag>

View File

@@ -27,7 +27,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowEnergyProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}

View File

@@ -27,7 +27,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowExtboProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
template<class TypeTag>

View File

@@ -27,7 +27,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowFoamProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
template<class TypeTag>

View File

@@ -32,7 +32,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowGasOilProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
@@ -53,7 +53,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.
using BaseTypeTag = TTag::EclFlowProblem;
using BaseTypeTag = TTag::FlowProblem;
using FluidSystem = GetPropType<BaseTypeTag, Properties::FluidSystem>;
public:

View File

@@ -31,7 +31,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowGasOilEnergyProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
@@ -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.
using BaseTypeTag = TTag::EclFlowProblem;
using BaseTypeTag = TTag::FlowProblem;
using FluidSystem = GetPropType<BaseTypeTag, Properties::FluidSystem>;
public:

View File

@@ -31,7 +31,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowGasOilDiffuseProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
@@ -55,7 +55,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.
using BaseTypeTag = TTag::EclFlowProblem;
using BaseTypeTag = TTag::FlowProblem;
using FluidSystem = GetPropType<BaseTypeTag, Properties::FluidSystem>;
public:

View File

@@ -35,7 +35,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowGasWaterProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
@@ -56,7 +56,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.
using BaseTypeTag = TTag::EclFlowProblem;
using BaseTypeTag = TTag::FlowProblem;
using FluidSystem = GetPropType<BaseTypeTag, Properties::FluidSystem>;
public:

View File

@@ -29,7 +29,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowGasWaterBrineProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
template<class TypeTag>
@@ -52,7 +52,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.
using BaseTypeTag = TTag::EclFlowProblem;
using BaseTypeTag = TTag::FlowProblem;
using FluidSystem = GetPropType<BaseTypeTag, Properties::FluidSystem>;
public:

View File

@@ -35,7 +35,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowGasWaterDissolutionProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
@@ -66,7 +66,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.
using BaseTypeTag = TTag::EclFlowProblem;
using BaseTypeTag = TTag::FlowProblem;
using FluidSystem = GetPropType<BaseTypeTag, Properties::FluidSystem>;
public:

View File

@@ -35,7 +35,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowGasWaterDissolutionDiffuseProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
@@ -69,7 +69,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.
using BaseTypeTag = TTag::EclFlowProblem;
using BaseTypeTag = TTag::FlowProblem;
using FluidSystem = GetPropType<BaseTypeTag, Properties::FluidSystem>;
public:

View File

@@ -35,7 +35,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowGasWaterEnergyProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
@@ -74,7 +74,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.
using BaseTypeTag = TTag::EclFlowProblem;
using BaseTypeTag = TTag::FlowProblem;
using FluidSystem = GetPropType<BaseTypeTag, Properties::FluidSystem>;
public:

View File

@@ -29,7 +29,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowGasWaterSaltprecEnergyProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
template<class TypeTag>
@@ -65,7 +65,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.
using BaseTypeTag = TTag::EclFlowProblem;
using BaseTypeTag = TTag::FlowProblem;
using FluidSystem = GetPropType<BaseTypeTag, Properties::FluidSystem>;
public:

View File

@@ -29,7 +29,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowGasWaterSaltprecVapwatProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
template<class TypeTag>
@@ -60,7 +60,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.
using BaseTypeTag = TTag::EclFlowProblem;
using BaseTypeTag = TTag::FlowProblem;
using FluidSystem = GetPropType<BaseTypeTag, Properties::FluidSystem>;
public:

View File

@@ -32,7 +32,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowGasWaterSolventProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
@@ -49,7 +49,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.
using BaseTypeTag = TTag::EclFlowProblem;
using BaseTypeTag = TTag::FlowProblem;
using FluidSystem = GetPropType<BaseTypeTag, Properties::FluidSystem>;
public:

View File

@@ -29,7 +29,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowMICPProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
template<class TypeTag>
@@ -44,7 +44,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.
using BaseTypeTag = TTag::EclFlowProblem;
using BaseTypeTag = TTag::FlowProblem;
using FluidSystem = GetPropType<BaseTypeTag, Properties::FluidSystem>;
public:

View File

@@ -32,7 +32,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowOilWaterProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
@@ -56,7 +56,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.
using BaseTypeTag = TTag::EclFlowProblem;
using BaseTypeTag = TTag::FlowProblem;
using FluidSystem = GetPropType<BaseTypeTag, Properties::FluidSystem>;
public:

View File

@@ -29,7 +29,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowOilWaterBrineProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
template<class TypeTag>
@@ -44,7 +44,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.
using BaseTypeTag = TTag::EclFlowProblem;
using BaseTypeTag = TTag::FlowProblem;
using FluidSystem = GetPropType<BaseTypeTag, Properties::FluidSystem>;
public:

View File

@@ -29,7 +29,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowOilWaterPolymerProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
template<class TypeTag>
@@ -44,7 +44,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.
using BaseTypeTag = TTag::EclFlowProblem;
using BaseTypeTag = TTag::FlowProblem;
using FluidSystem = GetPropType<BaseTypeTag, Properties::FluidSystem>;
public:

View File

@@ -29,7 +29,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowOilWaterPolymerInjectivityProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
template<class TypeTag>
@@ -50,7 +50,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.
using BaseTypeTag = TTag::EclFlowProblem;
using BaseTypeTag = TTag::FlowProblem;
using FluidSystem = GetPropType<BaseTypeTag, Properties::FluidSystem>;
public:

View File

@@ -30,7 +30,7 @@ namespace Properties {
namespace TTag {
struct EclFlowProblemWaterOnly {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
@@ -51,7 +51,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.
using BaseTypeTag = TTag::EclFlowProblem;
using BaseTypeTag = TTag::FlowProblem;
using FluidSystem = GetPropType<BaseTypeTag, Properties::FluidSystem>;
public:

View File

@@ -31,7 +31,7 @@ namespace Properties {
namespace TTag {
struct EclFlowProblemWaterOnlyEnergy {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
template<class TypeTag>
@@ -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.
using BaseTypeTag = TTag::EclFlowProblem;
using BaseTypeTag = TTag::FlowProblem;
using FluidSystem = GetPropType<BaseTypeTag, Properties::FluidSystem>;
public:

View File

@@ -27,7 +27,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowPolymerProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
template<class TypeTag>

View File

@@ -27,7 +27,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowSolventProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
template<class TypeTag>

View File

@@ -27,7 +27,7 @@ namespace Opm {
namespace Properties {
namespace TTag {
struct EclFlowSolventFoamProblem {
using InheritsFrom = std::tuple<EclFlowProblem>;
using InheritsFrom = std::tuple<FlowProblem>;
};
}
template<class TypeTag>