mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06: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:
parent
118e3f6dac
commit
0a8a791c49
@ -431,7 +431,20 @@ public:
|
||||
* \copydoc FvBaseProblem::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
|
||||
@ -2025,6 +2038,8 @@ private:
|
||||
pffDofData_.update(distFn);
|
||||
}
|
||||
|
||||
static std::string briefDescription_;
|
||||
|
||||
std::vector<Scalar> porosity_;
|
||||
std::vector<Scalar> elementCenterDepth_;
|
||||
EclTransmissibility<TypeTag> transmissibilities_;
|
||||
@ -2072,6 +2087,10 @@ private:
|
||||
PffGridVector<GridView, Stencil, PffDofData_, DofMapper> pffDofData_;
|
||||
|
||||
};
|
||||
|
||||
template <class TypeTag>
|
||||
std::string EclProblem<TypeTag>::briefDescription_;
|
||||
|
||||
} // namespace Ewoms
|
||||
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user