From e2f6551e886b00569941f7785137898f78fe3530 Mon Sep 17 00:00:00 2001 From: Bernd Flemisch <bernd@iws.uni-stuttgart.de> Date: Thu, 6 Dec 2012 16:44:06 +0000 Subject: [PATCH] implicit branch: fix condition for 3p3c git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/branches/implicit@9785 2fb0f335-1f38-0410-981e-8018bf24f1b0 --- dumux/implicit/3p3c/3p3cmodel.hh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dumux/implicit/3p3c/3p3cmodel.hh b/dumux/implicit/3p3c/3p3cmodel.hh index bc8da5efe6..9d8d48cd64 100644 --- a/dumux/implicit/3p3c/3p3cmodel.hh +++ b/dumux/implicit/3p3c/3p3cmodel.hh @@ -326,10 +326,10 @@ public: for (int scvIdx = 0; scvIdx < fvGeometry.numSCV; ++scvIdx) { int globalIdx; - if (numDofs == numElements) // element data - globalIdx = idx; - else + if (isBox) // vertex data globalIdx = this->vertexMapper().map(*elemIt, scvIdx, dim); + else + globalIdx = idx; volVars.update(sol[globalIdx], this->problem_(), -- GitLab