Commit ae8ae87d authored by Timo Koch's avatar Timo Koch

Merge branch 'cherry-pick-bcbea1ca' into 'releases/3.0'

Merge branch 'fix/uninitialized-variables-in-newton' into 'master'

See merge request !1501
parents 366350c0 6fdf254d
......@@ -746,7 +746,8 @@ private:
// execute the method as long as the solver thinks
// that we should do another iteration
while (newtonProceed(uCurrentIter, newtonConverged()))
bool converged = false;
while (newtonProceed(uCurrentIter, converged))
{
// notify the solver that we're about to start
// a new timestep
......@@ -818,6 +819,9 @@ private:
assembler_->assembleResidual(uCurrentIter);
convWriter->write(uLastIter, deltaU, assembler_->residual());
}
// detect if the method has converged
converged = newtonConverged();
}
// tell solver we are done
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment