From 36ebc38da4872a8499967adbcab7b0601b6ea162 Mon Sep 17 00:00:00 2001 From: Jean-Paul Pelteret Date: Tue, 14 May 2019 14:02:15 +0200 Subject: [PATCH] Band-aid for a failing AD test Sacado::Rad::Advar> fails for the second derivatives (nan) with the current evaluation point. This fixes the test, but one still wonders what the underlying issue is :-/ --- tests/ad_common_tests/helper_scalar_coupled_4_components_01.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ad_common_tests/helper_scalar_coupled_4_components_01.h b/tests/ad_common_tests/helper_scalar_coupled_4_components_01.h index 082b1de741..982c86f08d 100644 --- a/tests/ad_common_tests/helper_scalar_coupled_4_components_01.h +++ b/tests/ad_common_tests/helper_scalar_coupled_4_components_01.h @@ -417,7 +417,7 @@ test_symmetric_tensor_tensor_vector_scalar_coupled() SymmetricTensor<2, dim, ScalarNumberType> st = unit_symmetric_tensor(); for (unsigned int i = 0; i < st.n_independent_components; ++i) - st[st.unrolled_to_component_indices(i)] += 0.72 * (1.5 * i + 0.12); + st[st.unrolled_to_component_indices(i)] += 0.1 * i; Tensor<2, dim, ScalarNumberType> t = unit_symmetric_tensor(); for (unsigned int i = 0; i < t.n_independent_components; ++i) -- 2.39.5