Skip to content
Snippets Groups Projects
Commit 5f6f0db8 authored by Philipp Nuske's avatar Philipp Nuske
Browse files

keep old interface with a deprecated warning (yes this is really possible!)

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@6591 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 7c70e0b3
No related branches found
No related tags found
No related merge requests found
...@@ -74,6 +74,53 @@ public: ...@@ -74,6 +74,53 @@ public:
~BoxSpatialParametersOneP() ~BoxSpatialParametersOneP()
{} {}
/*!
* \brief Returns the factor by which the volume of a sub control
* volume needs to be multiplied in order to get cubic
* meters.
*
* \param element The current finite element
* \param fvElemGeom The current finite volume geometry of the element
* \param scvIdx The index sub-control volume face where the
* factor ought to be calculated.
*
* By default that's just 1.0
*/
Scalar extrusionFactorScv(const Element &element,
const FVElementGeometry &fvElemGeom,
int scvIdx) const
DUNE_DEPRECATED // use the extrusion factor of the volume variables
{ return 1.0; }
/*!
* \brief Returns the factor by which the area of a sub control
* volume face needs to be multiplied in order to get
* square meters.
*
* \param element The current finite element
* \param fvElemGeom The current finite volume geometry of the element
* \param scvfIdx The index sub-control volume face where the
* factor ought to be calculated.
*
* By default it is the arithmetic mean of the extrusion factor of
* the face's two sub-control volumes.
*/
Scalar extrusionFactorScvf(const Element &element,
const FVElementGeometry &fvElemGeom,
int scvfIdx) const
DUNE_DEPRECATED // use the extrusion factor of the volume variables
{
return
0.5 *
(asImp_().extrusionFactorScv(element,
fvElemGeom,
fvElemGeom.subContVolFace[scvfIdx].i)
+
asImp_().extrusionFactorScv(element,
fvElemGeom,
fvElemGeom.subContVolFace[scvfIdx].j));
}
/*! /*!
* \brief Averages the intrinsic permeability (Scalar). * \brief Averages the intrinsic permeability (Scalar).
* \param result averaged intrinsic permeability * \param result averaged intrinsic permeability
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment