Commit 6fdf254d authored by Timo Koch's avatar Timo Koch
Browse files

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

[nonlinear] Fix occurrence of uninitialized variables in Newton

Closes #655

See merge request !1499

(cherry picked from commit bcbea1ca)

14b9f128 [nonlinear] Fix occurrence of uninitialized variables in Newton
parent 366350c0
......@@ -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:
convWriter->write(uLastIter, deltaU, assembler_->residual());
// detect if the method has converged
converged = newtonConverged();
// tell solver we are done
Supports Markdown
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