]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use another way to compute the value to be submitted. This should fix the final norm...
authorMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 22 Apr 2014 06:36:56 +0000 (06:36 +0000)
committerMartin Kronbichler <kronbichler@lnm.mw.tum.de>
Tue, 22 Apr 2014 06:36:56 +0000 (06:36 +0000)
git-svn-id: https://svn.dealii.org/trunk@32800 0785d39b-7218-0410-832d-ea1e28bc413d

tests/matrix_free/step-48b.cc

index 15dec5539b6b4f0901c4730d4c82e494ab8eaa11..0d90bc53048a57e7780dcb877ab9c82a25a5b7e9 100644 (file)
@@ -142,7 +142,7 @@ namespace Step48
             const VectorizedArray<double> simple_value =
               2.*current_value - old_value;
             const VectorizedArray<double> sin_value = delta_t_sqr * std::sin(current_value);
-            current.submit_value (submit_value,q);
+            current.submit_value (simple_value-sin_value,q);
             current.submit_gradient (- delta_t_sqr *
                                      current.get_gradient(q), q);
 

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.