]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix step-48 on tester by computing the value as in step-48b (with an unnecessary...
authorkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 23 Apr 2014 14:10:42 +0000 (14:10 +0000)
committerkronbichler <kronbichler@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 23 Apr 2014 14:10:42 +0000 (14:10 +0000)
git-svn-id: https://svn.dealii.org/trunk@32817 0785d39b-7218-0410-832d-ea1e28bc413d

tests/matrix_free/step-48.cc

index b920f8b52c49d19621ff524a07dfc629805d532f..243050d7a4584e6640493bef3c9cf1f3abdc1c2c 100644 (file)
@@ -141,6 +141,9 @@ namespace Step48
             const VectorizedArray<double> current_value = current.get_value(q);
             const VectorizedArray<double> old_value     = old.get_value(q);
 
+            // the first 'dummy' is needed to work around a compiler bug in
+            // the tester
+            const VectorizedArray<double> dummy = -std::sin(current_value);
             current.submit_value (2.*current_value - old_value -
                                   delta_t_sqr * std::sin(current_value),q);
             current.submit_gradient (- delta_t_sqr *

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.