]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Qualify fabs properly with std::.
authorWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 16 Nov 2009 14:00:55 +0000 (14:00 +0000)
committerWolfgang Bangerth <bangerth@math.tamu.edu>
Mon, 16 Nov 2009 14:00:55 +0000 (14:00 +0000)
git-svn-id: https://svn.dealii.org/trunk@20116 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/fe_q.cc

index f3df8e23f8a351049405687c8ac546846c24f41b..59f85881e715db176922cc9405f22be038129e90 100644 (file)
@@ -941,9 +941,9 @@ get_face_interpolation_matrix (const FiniteElement<dim,spacedim> &x_source_fe,
                                   // 1 or 0. Unfortunately, this
                                   // is required to avoid problems
                                   // with higher order elements.
-         if (fabs (matrix_entry - 1.0) < eps)
+         if (std::fabs (matrix_entry - 1.0) < eps)
            matrix_entry = 1.0;
-         if (fabs (matrix_entry) < eps)
+         if (std::fabs (matrix_entry) < eps)
            matrix_entry = 0.0;
 
          interpolation_matrix(i,j) = matrix_entry;
@@ -1049,9 +1049,9 @@ get_subface_interpolation_matrix (const FiniteElement<dim,spacedim> &x_source_fe
                                           // 1 or 0. Unfortunately, this
                                           // is required to avoid problems
                                           // with higher order elements.
-         if (fabs (matrix_entry - 1.0) < eps)
+         if (std::fabs (matrix_entry - 1.0) < eps)
            matrix_entry = 1.0;
-         if (fabs (matrix_entry) < eps)
+         if (std::fabs (matrix_entry) < eps)
            matrix_entry = 0.0;
 
          interpolation_matrix(i,j) = matrix_entry;

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.