From c05c284e189ad980387bbadc20d8c435d09ec118 Mon Sep 17 00:00:00 2001 From: Timo Heister Date: Sat, 23 Jan 2016 11:56:27 +0100 Subject: [PATCH] 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) --- tests/codim_one/error_estimator_02.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5