mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-08-13 08:45:05 -05:00
ebos: make the brief description settable from the exterior
this allows `flow` to print something else than plain-`ebos`.
This commit is contained in:
+20
-1
@@ -431,7 +431,20 @@ public:
|
|||||||
* \copydoc FvBaseProblem::briefDescription
|
* \copydoc FvBaseProblem::briefDescription
|
||||||
*/
|
*/
|
||||||
static std::string briefDescription()
|
static std::string briefDescription()
|
||||||
{ return "ebos, the Ecl Black-Oil reservoir Simulator. A program to process ECL input files."; }
|
{
|
||||||
|
if (briefDescription_.empty())
|
||||||
|
return "ebos, the Ecl Black-Oil reservoir Simulator. A program to process ECL input files.";
|
||||||
|
else
|
||||||
|
return briefDescription_;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*!
|
||||||
|
* \brief Specifies the string returned by briefDescription()
|
||||||
|
*
|
||||||
|
* This string appears in the usage message.
|
||||||
|
*/
|
||||||
|
static void setBriefDescription(const std::string& msg)
|
||||||
|
{ briefDescription_ = msg; }
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* \copydoc Doxygen::defaultProblemConstructor
|
* \copydoc Doxygen::defaultProblemConstructor
|
||||||
@@ -2025,6 +2038,8 @@ private:
|
|||||||
pffDofData_.update(distFn);
|
pffDofData_.update(distFn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static std::string briefDescription_;
|
||||||
|
|
||||||
std::vector<Scalar> porosity_;
|
std::vector<Scalar> porosity_;
|
||||||
std::vector<Scalar> elementCenterDepth_;
|
std::vector<Scalar> elementCenterDepth_;
|
||||||
EclTransmissibility<TypeTag> transmissibilities_;
|
EclTransmissibility<TypeTag> transmissibilities_;
|
||||||
@@ -2072,6 +2087,10 @@ private:
|
|||||||
PffGridVector<GridView, Stencil, PffDofData_, DofMapper> pffDofData_;
|
PffGridVector<GridView, Stencil, PffDofData_, DofMapper> pffDofData_;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
template <class TypeTag>
|
||||||
|
std::string EclProblem<TypeTag>::briefDescription_;
|
||||||
|
|
||||||
} // namespace Ewoms
|
} // namespace Ewoms
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user