EclProblem: add a porosity(elemIdx) method

this is not a generic API but makes emulating legacy stuff which
requires the porosity quite a bit easier in flow_ebos.
This commit is contained in:
Andreas Lauser
2016-11-30 14:21:04 +01:00
parent a3ddd2066b
commit 4ef6d5d1ce

View File

@@ -637,6 +637,16 @@ public:
return porosity_[globalSpaceIdx];
}
/*!
* \brief Returns the porosity of an element
*
* Note that this method is *not* part of the generic eWoms problem API because it
* would bake the assumption that only the elements are the degrees of freedom into
* the interface.
*/
Scalar porosity(unsigned elementIdx) const
{ return porosity_[elementIdx]; }
/*!
* \brief Returns the depth of an degree of freedom [m]
*