From: hartmann Date: Mon, 23 Feb 2004 12:49:52 +0000 (+0000) Subject: Add some missing std. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4c1bb0b29df021a4dccf6c6aaa4c8e9f91b1ad7;p=dealii-svn.git Add some missing std. git-svn-id: https://svn.dealii.org/trunk@8484 0785d39b-7218-0410-832d-ea1e28bc413d --- diff --git a/tests/fe/shapes.cc b/tests/fe/shapes.cc index c6bcfc12a1..a2f123f936 100644 --- a/tests/fe/shapes.cc +++ b/tests/fe/shapes.cc @@ -264,7 +264,7 @@ check_values_and_derivatives (const FiniteElement &fe, { const double val1 = fe_values.shape_value_component(i,x,c), val2 = fe.shape_value_component(i,q.point(x),c); - Assert (fabs(val1-val2) < 1e-13, ExcInternalError()); + Assert (std::fabs(val1-val2) < 1e-13, ExcInternalError()); }; // test something about the @@ -290,7 +290,7 @@ check_values_and_derivatives (const FiniteElement &fe, { Tensor<1,dim> tmp=fe_values.shape_grad_component(i,x,c); tmp -= fe.shape_grad_component (i,q.point(x), c); - Assert (sqrt(tmp*tmp)<1e-14, ExcInternalError()); + Assert (std::sqrt(tmp*tmp)<1e-14, ExcInternalError()); }; if (fe.is_primitive(i)) @@ -315,9 +315,9 @@ check_values_and_derivatives (const FiniteElement &fe, for (unsigned int j=0; jmax_diff) max_diff=diff; - Assert (fabs(tmp[j][k]) < 1e-6, ExcInternalError()); + Assert (std::fabs(tmp[j][k]) < 1e-6, ExcInternalError()); } };