mirror of
https://github.com/OPM/opm-simulators.git
synced 2026-08-27 12:27:13 -05:00
Return a pointer to the material manager
This is used by blackoilintensivequantities.hh. Further, for other problems derived from MultiPhaseBaseProblem, that base class will return a null pointer such that problems that do not override the materialLawManagerPtr() method still can use the blackoil intensive quantitites (which in the case of directional relative permeabilities makes use of the problem reference to access the materialLawManager)
This commit is contained in:
@@ -1505,6 +1505,12 @@ public:
|
||||
std::shared_ptr<const EclMaterialLawManager> materialLawManager() const
|
||||
{ return materialLawManager_; }
|
||||
|
||||
// TODO: See discussion in multiphasebaseproblem.hh for the reason why we need this method
|
||||
const EclMaterialLawManager* materialLawManagerPtr() const
|
||||
{
|
||||
return materialLawManager_.get();
|
||||
}
|
||||
|
||||
/*!
|
||||
* \copydoc materialLawManager()
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user