]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fixed condition in assert checking for convergence in nonlinear solver 3660/head
authorJean-Paul Pelteret <jppelteret@gmail.com>
Mon, 5 Dec 2016 16:42:30 +0000 (17:42 +0100)
committerJean-Paul Pelteret <jppelteret@gmail.com>
Mon, 5 Dec 2016 16:42:30 +0000 (17:42 +0100)
Fixes #3604

examples/step-44/step-44.cc

index 2e271821edede55a06798dc756efa634b231ace9..57a807e254ea6bbd00b1d762d33a6adf26587886 100644 (file)
@@ -1926,7 +1926,7 @@ namespace Step44
     // exception object that identify the location (filename and line number)
     // where the exception was raised to make it simpler to identify where the
     // problem happened.
-    AssertThrow (newton_iteration <= parameters.max_iterations_NR,
+    AssertThrow (newton_iteration < parameters.max_iterations_NR,
                  ExcMessage("No convergence in nonlinear solver!"));
   }
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.