]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Don't use round, use rint.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 3 Jun 2005 16:08:48 +0000 (16:08 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 3 Jun 2005 16:08:48 +0000 (16:08 +0000)
git-svn-id: https://svn.dealii.org/trunk@10834 0785d39b-7218-0410-832d-ea1e28bc413d

tests/fe/rtn_1.cc

index 96dbeae6d996f520466fd781b5b086568a6d7875..2e66fb06723ef03d7375bc0a24972223e2004f9b 100644 (file)
 #include <string>
 
 #include <cmath>
-extern "C" 
-{
-#include <math.h>
-};
+
 
 template <int dim>
 void
@@ -63,7 +60,7 @@ check_support_points (const FiniteElement<dim>& fe)
          for (unsigned int d=0;d<dim;++d)
            {
              const double sf = fe.shape_value_component(i,p,d);
-             deallog << ' ' << (int) round(60*sf);
+             deallog << ' ' << (int) rint(60*sf);
              
              const double diff = std::abs(sf - vals.shape_value_component(i,k,d));
              if (diff > 1.e-12)
@@ -116,7 +113,7 @@ check_face_support_points (const FiniteElement<dim>& fe)
              for (unsigned int d=0;d<dim;++d)
                {
                  const double sf = fe.shape_value_component(i,p,d);
-                 deallog << ' ' << (int) round(60*sf);
+                 deallog << ' ' << (int) rint(60*sf);
                  
                  const double diff = std::abs(sf - vals.shape_value_component(i,k,d));
                  if (diff > 1.e-12)

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.