From 1d85069cfb4a621efab8fc809c8c2ab8b0fa5e0b Mon Sep 17 00:00:00 2001 From: Timo Koch <timo.koch@iws.uni-stuttgart.de> Date: Mon, 19 Dec 2016 17:09:03 +0100 Subject: [PATCH] [fix][3p3c][test] Fix syntax for volvar deflection with global caching --- dumux/porousmediumflow/3p3c/implicit/model.hh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/dumux/porousmediumflow/3p3c/implicit/model.hh b/dumux/porousmediumflow/3p3c/implicit/model.hh index c247ac21bd..42a9e3a9e7 100644 --- a/dumux/porousmediumflow/3p3c/implicit/model.hh +++ b/dumux/porousmediumflow/3p3c/implicit/model.hh @@ -169,10 +169,11 @@ public: auto dofIdxGlobal = scv.dofIndex(); if (priVarSwitch_().wasSwitched(dofIdxGlobal)) { - this->nonConstantCurGlobalVolVars()[dofIdxGlobal].update(this->curSol()[dofIdxGlobal], - this->problem_(), - element, - scv); + + this->nonConstCurGlobalVolVars().volVars(scv.index()).update(this->curSol()[dofIdxGlobal], + this->problem_(), + element, + scv); } } -- GitLab