From: Martin Kronbichler Date: Thu, 18 Jul 2019 14:29:15 +0000 (+0200) Subject: Make assertion robust w.r.t. vectorization width X-Git-Tag: v9.2.0-rc1~1374^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8393%2Fhead;p=dealii.git Make assertion robust w.r.t. vectorization width --- diff --git a/tests/base/point_03.cc b/tests/base/point_03.cc index 921d54d252..efb9d9452d 100644 --- a/tests/base/point_03.cc +++ b/tests/base/point_03.cc @@ -51,7 +51,9 @@ check() for (unsigned int v = 0; v < VectorizedArray::n_array_elements; ++v) diff += std::abs(distance_vec[v]); - AssertThrow(diff < 100 * std::numeric_limits::epsilon(), + AssertThrow(diff < 2 * std::numeric_limits::epsilon() * + VectorizedArray::n_array_elements * + VectorizedArray::n_array_elements, ExcMessage("diff is " + std::to_string(diff))); deallog << "Ok" << std::endl;