From: Timo Heister Date: Sat, 23 Jan 2016 10:56:27 +0000 (+0100) Subject: fix test codim_one/error_estimator_02 X-Git-Tag: v8.4.0-rc2~64^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2102%2Fhead;p=dealii.git fix test codim_one/error_estimator_02 fixes dealii/tests/codim_one/error_estimator_02.cc:75:9: warning: using integer absolute value function 'abs' when argument is of floating point type [-Wabsolute-value] if (abs(p(1)-1.0)<1e-5) --- diff --git a/tests/codim_one/error_estimator_02.cc b/tests/codim_one/error_estimator_02.cc index d4cfb46f98..f79059a0ec 100644 --- a/tests/codim_one/error_estimator_02.cc +++ b/tests/codim_one/error_estimator_02.cc @@ -72,7 +72,7 @@ public: const unsigned int component) const { double val = 0.0; - if (abs(p(1)-1.0)<1e-5) + if (std::abs(p(1)-1.0)<1e-5) val = 2.0; deallog << "evaluate normal derivative at " << p << " with value " << val << std::endl;