From 276f16990b341ba9987950918181c97dfff7de33 Mon Sep 17 00:00:00 2001 From: DennisGlaeser <dennis.glaeser@iws.uni-stuttgart.de> Date: Fri, 12 May 2017 10:08:14 +0200 Subject: [PATCH] [cc][localjac] store const copies of privars and volvars --- dumux/implicit/cellcentered/localjacobian.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dumux/implicit/cellcentered/localjacobian.hh b/dumux/implicit/cellcentered/localjacobian.hh index 56828a566f..da7b6dd878 100644 --- a/dumux/implicit/cellcentered/localjacobian.hh +++ b/dumux/implicit/cellcentered/localjacobian.hh @@ -239,8 +239,8 @@ protected: // save a copy of the original privars and vol vars in order // to restore the original solution after deflection - auto origPriVars = curSol[globalI_]; - auto origVolVars = curVolVars; + const auto origPriVars = curSol[globalI_]; + const auto origVolVars = curVolVars; // derivatives in the neighbors with repect to the current elements Dune::BlockVector<PrimaryVariables> neighborDeriv(numNeighbors); -- GitLab