]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a bug introduced in the previous version.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 6 Oct 2013 18:21:36 +0000 (18:21 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Sun, 6 Oct 2013 18:21:36 +0000 (18:21 +0000)
git-svn-id: https://svn.dealii.org/trunk@31152 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/examples/step-42/step-42.cc

index 964684bb32fa9e872851bee06d24f7235982e15c..efaa9302baff3736b54266f08c7140a38526fd7a 100644 (file)
@@ -1789,7 +1789,7 @@ namespace Step42
 
             residual_norm = residual.l2_norm();
 
-            if (newton_step==0 || residual_norm < previous_residual_norm)
+            if (newton_step==1 || residual_norm < previous_residual_norm)
               damped = true;
 
             pcout << "      Residual of the non-contact part of the system: "

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.