Skip to content
Snippets Groups Projects
Commit f07f8195 authored by Timo Koch's avatar Timo Koch
Browse files

[electrochem] Use NumEqVector instead of wrong type PrimaryVariables for sources

parent 48d06d1a
No related branches found
No related tags found
2 merge requests!617[WIP] Next,!530Feature/move phasepresence to privars
......@@ -40,7 +40,7 @@ namespace Properties
NEW_PROP_TAG(FluidSystem);
NEW_PROP_TAG(FVElementGeometry);
NEW_PROP_TAG(Indices);
NEW_PROP_TAG(PrimaryVariables);
NEW_PROP_TAG(NumEqVector);
NEW_PROP_TAG(VolumeVariables);
}
......@@ -61,7 +61,7 @@ class ElectroChemistry
typedef typename GET_PROP_TYPE(TypeTag, Scalar) Scalar;
typedef typename GET_PROP_TYPE(TypeTag, FluidSystem) FluidSystem;
typedef typename GET_PROP_TYPE(TypeTag, VolumeVariables) VolumeVariables;
typedef typename GET_PROP_TYPE(TypeTag, PrimaryVariables) PrimaryVariables;
typedef typename GET_PROP_TYPE(TypeTag, NumEqVector) SourceValues;
typedef typename GET_PROP_TYPE(TypeTag, GridView) GridView;
typedef typename GridView::template Codim<0>::Entity Element;
typedef typename GET_PROP_TYPE(TypeTag, FVElementGeometry) FVElementGeometry;
......@@ -112,7 +112,7 @@ public:
*
* For this method, the \a values parameter stores source values
*/
static void reactionSource(PrimaryVariables &values,
static void reactionSource(SourceValues &values,
Scalar currentDensity)
{
//correction to account for actually relevant reaction area
......
......@@ -37,7 +37,7 @@ namespace Properties
NEW_PROP_TAG(FluidSystem);
NEW_PROP_TAG(Indices);
NEW_PROP_TAG(VolumeVariables);
NEW_PROP_TAG(PrimaryVariables);
NEW_PROP_TAG(NumEqVector);
}
/*!
......@@ -55,7 +55,7 @@ class ElectroChemistryNI : public ElectroChemistry<TypeTag, electroChemistryMode
typedef typename GET_PROP_TYPE(TypeTag, GridView) GridView;
typedef typename GET_PROP_TYPE(TypeTag, FluidSystem) FluidSystem;
typedef typename GET_PROP_TYPE(TypeTag, VolumeVariables) VolumeVariables;
typedef typename GET_PROP_TYPE(TypeTag, PrimaryVariables) PrimaryVariables;
typedef typename GET_PROP_TYPE(TypeTag, NumEqVector) SourceValues;
typedef Constants<Scalar> Constant;
......@@ -88,7 +88,7 @@ public:
*
* For this method, the \a values parameter stores source values
*/
static void reactionSource(PrimaryVariables &values,
static void reactionSource(SourceValues &values,
Scalar currentDensity)
{
//correction to account for actually relevant reaction area
......
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