Commit 3152609e authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

[1p2c] remove unused variables, fix comments, use variable more locally


git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@14443 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 0a34f077
......@@ -290,12 +290,8 @@ protected:
const Element &element,
const ElementVolumeVariables &elemVolVars)
{
const VolumeVariables &volVarsI = elemVolVars[face().i];
const VolumeVariables &volVarsJ = elemVolVars[face().j];
GlobalPosition tmp(0.0);
// use finite-element gradients
for (unsigned int idx = 0; idx < face().numFap; idx++) // loop over adjacent vertices
// loop over flux approximation points
for (unsigned int idx = 0; idx < face().numFap; idx++)
{
// FE gradient at vertex idx
const GlobalPosition &feGrad = face().grad[idx];
......@@ -304,7 +300,7 @@ protected:
int volVarsIdx = face().fapIndices[idx];
// the pressure gradient
tmp = feGrad;
GlobalPosition tmp = feGrad;
tmp *= elemVolVars[volVarsIdx].pressure();
potentialGrad_ += tmp;
......
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