]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add some missing std.
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 23 Feb 2004 12:49:52 +0000 (12:49 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 23 Feb 2004 12:49:52 +0000 (12:49 +0000)
git-svn-id: https://svn.dealii.org/trunk@8484 0785d39b-7218-0410-832d-ea1e28bc413d

tests/fe/shapes.cc

index c6bcfc12a1538ed2b0f0e988f0c974b7c7c20693..a2f123f9369c9a27b8dc4363a28a5bfeff4d72e6 100644 (file)
@@ -264,7 +264,7 @@ check_values_and_derivatives (const FiniteElement<dim> &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<dim> &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<dim> &fe,
             for (unsigned int j=0; j<dim; ++j)
               for (unsigned int k=0; k<dim; ++k)
                 {
-                  const double diff=fabs(tmp[j][k]);
+                  const double diff=std::fabs(tmp[j][k]);
                   if (diff>max_diff) max_diff=diff;
-                  Assert (fabs(tmp[j][k]) < 1e-6, ExcInternalError());
+                  Assert (std::fabs(tmp[j][k]) < 1e-6, ExcInternalError());
                 }
           };
 

In the beginning the Universe was created. This has made a lot of people very angry and has been widely regarded as a bad move.

Douglas Adams


Typeset in Trocchi and Trocchi Bold Sans Serif.