From 84f02b56595b90d3f67cee8884e1240388a0d356 Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Wed, 23 Apr 2014 14:10:42 +0000 Subject: [PATCH] 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 --- tests/matrix_free/step-48.cc | 3 +++ 1 file changed, 3 insertions(+) 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 * -- 2.39.5