]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix a mistake on the sign in the residual formular for time_stepping.
authorBruno Turcksin <bruno.turcksin@gmail.com>
Tue, 29 Apr 2014 19:43:27 +0000 (19:43 +0000)
committerBruno Turcksin <bruno.turcksin@gmail.com>
Tue, 29 Apr 2014 19:43:27 +0000 (19:43 +0000)
git-svn-id: https://svn.dealii.org/trunk@32858 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/include/deal.II/base/time_stepping.templates.h

index c3c08f117d0dbbcd38559857474efcede58025c8..9886655530324ef4829f6a674ba4851d683ebb08 100644 (file)
@@ -388,7 +388,7 @@ namespace TimeStepping
     tendency = f(t,y);
     residual = tendency;
     residual.sadd(delta_t,1.0,old_y);
-    residual.sadd(1.0,-1.,y);
+    residual.sadd(-1.0,1.,y);
   }
 
 

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.