Commit 12c00755 authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

CO2 tests: replace discretization-specific initial by generic initialAtPos

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@10731 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 7621e39f
......@@ -438,19 +438,14 @@ public:
* \brief Evaluate the initial value for a control volume.
*
* \param values The initial values for the primary variables
* \param element The finite element
* \param fvElemGeom The finite-volume geometry in the box scheme
* \param scvIdx The local vertex index
* \param globalPos The center of the finite volume which ought to be set.
*
* For this method, the \a values parameter stores primary
* variables.
*/
void initial(PrimaryVariables &values,
const Element &element,
const FVElementGeometry &fvElemGeom,
int scvIdx) const
void initialAtPos(PrimaryVariables &values,
const GlobalPosition &globalPos) const
{
const GlobalPosition &globalPos = element.geometry().corner(scvIdx);
initial_(values, globalPos);
}
......
......@@ -445,19 +445,14 @@ public:
* \brief Evaluate the initial value for a control volume.
*
* \param values The initial values for the primary variables
* \param element The finite element
* \param fvElemGeom The finite-volume geometry in the box scheme
* \param scvIdx The local vertex index
* \param globalPos The center of the finite volume which ought to be set.
*
* For this method, the \a values parameter stores primary
* variables.
*/
void initial(PrimaryVariables &values,
const Element &element,
const FVElementGeometry &fvElemGeom,
int scvIdx) const
void initialAtPos(PrimaryVariables &values,
const GlobalPosition &globalPos) const
{
const GlobalPosition &globalPos = element.geometry().corner(scvIdx);
initial_(values, globalPos);
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment