From c9d3f4457c2c74ab9428a22ec55722349016adb4 Mon Sep 17 00:00:00 2001 From: Christoph Grueninger <christoph.grueninger@iws.uni-stuttgart.de> Date: Fri, 18 Jan 2013 14:27:40 +0000 Subject: [PATCH] [StokesLocalResidual] Revert renaming of variable from r9781. There I introduces a bug by naming a loop variable that was already declared. Kudos to fetzer for doing all the work and finding this bug. The Stokes models should convert better again. (reviewed by bernd) git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@10041 2fb0f335-1f38-0410-981e-8018bf24f1b0 --- dumux/freeflow/stokes/stokeslocalresidual.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dumux/freeflow/stokes/stokeslocalresidual.hh b/dumux/freeflow/stokes/stokeslocalresidual.hh index 158b1d5f46..7ab76bea9d 100644 --- a/dumux/freeflow/stokes/stokeslocalresidual.hh +++ b/dumux/freeflow/stokes/stokeslocalresidual.hh @@ -299,11 +299,11 @@ protected: DimVector pressureGradAtSCVCenter(0.0); DimVector grad(0.0); - for (int scvIdx = 0; scvIdx < this->fvGeometry_().numVertices; scvIdx++) + for (int scvIdx2 = 0; scvIdx2 < this->fvGeometry_().numVertices; scvIdx2++) { - grad = this->fvGeometry_().subContVol[scvIdx].gradCenter[scvIdx]; + grad = this->fvGeometry_().subContVol[scvIdx].gradCenter[scvIdx2]; Valgrind::CheckDefined(grad); - grad *= elemVolVars[scvIdx].pressure(); + grad *= elemVolVars[scvIdx2].pressure(); pressureGradAtSCVCenter += grad; } -- GitLab