mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
problems: make the name() methods static
this allows to retrieve the name of the problem before it is instantiated. this is required to be able to print the "Initializing problem" message at the correct point (i.e., before instantiating the problem).
This commit is contained in:
@@ -185,15 +185,16 @@ class WaterAirProblem
|
||||
dimWorld = GridView::dimensionworld
|
||||
};
|
||||
|
||||
static const bool enableEnergy = GET_PROP_VALUE(TypeTag, EnableEnergy);
|
||||
|
||||
typedef typename GET_PROP_TYPE(TypeTag, RateVector) RateVector;
|
||||
typedef typename GET_PROP_TYPE(TypeTag, BoundaryRateVector) BoundaryRateVector;
|
||||
typedef typename GET_PROP_TYPE(TypeTag, PrimaryVariables) PrimaryVariables;
|
||||
typedef typename GET_PROP_TYPE(TypeTag, Constraints) Constraints;
|
||||
typedef typename GET_PROP_TYPE(TypeTag, TimeManager) TimeManager;
|
||||
|
||||
typedef typename GET_PROP_TYPE(TypeTag, Model) Model;
|
||||
typedef typename GET_PROP_TYPE(TypeTag, MaterialLaw) MaterialLaw;
|
||||
typedef typename GET_PROP_TYPE(TypeTag, MaterialLawParams) MaterialLawParams;
|
||||
|
||||
typedef typename GET_PROP_TYPE(TypeTag, HeatConductionLaw) HeatConductionLaw;
|
||||
typedef typename GET_PROP_TYPE(TypeTag, HeatConductionLawParams) HeatConductionLawParams;
|
||||
|
||||
@@ -257,10 +258,10 @@ public:
|
||||
/*!
|
||||
* \copydoc VcfvProblem::name
|
||||
*/
|
||||
std::string name() const
|
||||
static std::string name()
|
||||
{
|
||||
std::ostringstream oss;
|
||||
oss << "waterair_" << this->model().name();
|
||||
oss << "waterair_" << Model::name();
|
||||
if (GET_PROP_VALUE(TypeTag, EnableEnergy))
|
||||
oss << "_ni";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user