From: Martin Kronbichler Date: Wed, 23 Apr 2014 14:10:42 +0000 (+0000) Subject: Fix step-48 on tester by computing the value as in step-48b (with an unnecessary... X-Git-Tag: v8.2.0-rc1~563 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=84f02b56595b90d3f67cee8884e1240388a0d356;p=dealii.git Fix step-48 on tester by computing the value as in step-48b (with an unnecessary second computation for std::sin). This shows that we indeed look at a compiler bug. git-svn-id: https://svn.dealii.org/trunk@32817 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/matrix_free/step-48.cc b/tests/matrix_free/step-48.cc index b920f8b52c..243050d7a4 100644 --- a/tests/matrix_free/step-48.cc +++ b/tests/matrix_free/step-48.cc @@ -141,6 +141,9 @@ namespace Step48 const VectorizedArray current_value = current.get_value(q); const VectorizedArray old_value = old.get_value(q); + // the first 'dummy' is needed to work around a compiler bug in + // the tester + const VectorizedArray 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 *