diff --git a/dumux/implicit/cellcentered/localjacobian.hh b/dumux/implicit/cellcentered/localjacobian.hh index 56828a566f77698e08daef5d0f959022849ba39c..da7b6dd878e9fa39bd87415be4c49cdcf76a8595 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);