diff --git a/dumux/nonlinear/staggerednewtoncontroller.hh b/dumux/nonlinear/staggerednewtoncontroller.hh index d7cf5919c840b54a694fa4c82bac7ae9e13fd1a2..0d197727b05982a8753f0b22ddad2c019a37823b 100644 --- a/dumux/nonlinear/staggerednewtoncontroller.hh +++ b/dumux/nonlinear/staggerednewtoncontroller.hh @@ -89,8 +89,8 @@ public: // solve by calling the appropriate implementation depending on whether the linear solver // is capable of handling MultiType matrices or not - const bool converged = solveLinearSystem_(ls, A, x, b, - std::integral_constant<bool, LinearSolverAcceptsMultiTypeMatrix<LinearSolver>::value>()); + bool converged = solveLinearSystem_(ls, A, x, b, + std::integral_constant<bool, LinearSolverAcceptsMultiTypeMatrix<LinearSolver>::value>()); // make sure all processes converged int convergedRemote = converged;