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

tests/deal.II/block_matrices.cc
tests/fe/mapping_q1_eulerian.cc

index 5ad55e40847f317078060333caa22952bd09ff52..9002c12114a23000a7d0138305d4647a52bad07b 100644 (file)
@@ -427,8 +427,8 @@ int main ()
       const double accuracy = (i==1 ? 1e-6 : 1e-12);
       
       for (unsigned int j=0; j<solutions[0].size(); ++j)
-       if ( fabs(solutions[i][j] - solutions[0][j]) >
-            accuracy*fabs(solutions[i][j] + solutions[0][j]))
+       if ( std::fabs(solutions[i][j] - solutions[0][j]) >
+            accuracy*std::fabs(solutions[i][j] + solutions[0][j]))
          {
            deallog << "Discrepancy: i=" << i << ", j=" << j
                    << ", sol[i][j]=" << solutions[i][j]
index 261e62ad4972bef55ee4bc4ffbfc310d52889daf..bc971fb53728f73ececbe8c595852f0d5dd41f0f 100644 (file)
@@ -32,7 +32,7 @@ show_values(FiniteElement<dim>& fe,
                                   // shift one point of the cell
                                   // somehow
   if (dim > 1)
-    tr.begin_active()->vertex(2)(dim-1) += 1./sqrt(2.);
+    tr.begin_active()->vertex(2)(dim-1) += 1./std::sqrt(2.);
   DoFHandler<dim> dof(tr);
   dof.distribute_dofs(fe);
 

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.