Commit 8362aa71 authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

FieldVector: use dimension instead of size

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@7347 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent b95ad30f
......@@ -335,7 +335,7 @@ protected:
// use two-point gradients
const GlobalPosition &posI = element.geometry().corner(face().i);
const GlobalPosition &posJ = element.geometry().corner(face().j);
for (int i = 0; i < Vector::size; ++ i)
for (int i = 0; i < Vector::dimension; ++ i)
tmp[i] = posI[i] - posJ[i];
Scalar dist = tmp.two_norm();
......
......@@ -250,7 +250,7 @@ public:
{
// diffusive flux of the second component - massfraction
tmp = 0;
for (int i = 0; i < Vector::size; ++ i)
for (int i = 0; i < Vector::dimension; ++ i)
tmp += fluxVars.massFracGrad(comp1Idx)[i]*fluxVars.face().normal[i];
tmp *= -1;
tmp *= fluxVars.porousDiffCoeff() * fluxVars.densityAtIP();
......@@ -261,7 +261,7 @@ public:
{
// diffusive flux of the second component - molefraction
tmp = 0;
for (int i = 0; i < Vector::size; ++ i)
for (int i = 0; i < Vector::dimension; ++ i)
tmp += fluxVars.moleFracGrad(comp1Idx)[i]*fluxVars.face().normal[i];
tmp *= -1;
tmp *= fluxVars.porousDiffCoeff() * fluxVars.molarDensityAtIP();
......@@ -417,7 +417,7 @@ protected:
// diffusive flux of comp1 component in phase0
Scalar tmp = 0;
for (int i = 0; i < Vector::size; ++ i)
for (int i = 0; i < Vector::dimension; ++ i)
tmp += boundaryVars.massFracGrad(comp1Idx)[i]*boundaryVars.boundaryFace().normal[i];
tmp *= -1;
......@@ -433,7 +433,7 @@ protected:
// diffusive flux of comp1 component in phase0
Scalar tmp = 0;
for (int i = 0; i < Vector::size; ++ i)
for (int i = 0; i < Vector::dimension; ++ i)
tmp += boundaryVars.moleFracGrad(comp1Idx)[i]*boundaryVars.boundaryFace().normal[i];
tmp *= -1;
......
......@@ -148,7 +148,7 @@ public:
fluxVars.intrinsicPermeability().mv(fluxVars.potentialGrad(phaseIdx),
tmpVec);
Scalar normalFlux = 0;
for (int i = 0; i < Vector::size; ++i)
for (int i = 0; i < Vector::dimension; ++i)
normalFlux += tmpVec[i]*fluxVars.face().normal[i];
normalFlux *= -1;
......
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