]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix non-compilations with cxx.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Aug 2003 22:57:22 +0000 (22:57 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 20 Aug 2003 22:57:22 +0000 (22:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@7952 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/dofs/dof_renumbering.cc

index d9e1854d346852f619038ab63f2d668bd69c7e8e..1ea8ed5348ef5d281d3863dad6c491483c2891bb 100644 (file)
@@ -37,6 +37,7 @@
 #include <vector>
 #include <map>
 #include <algorithm>
+#include <cmath>
 
 
 // for whatever reason, the random_shuffle function used below needs
@@ -1025,8 +1026,8 @@ struct ClockCells
        
        const Point<dim> v1 = c1->center() - center;
        const Point<dim> v2 = c2->center() - center;
-       const double s1 = atan2(v1(0), v1(1));
-       const double s2 = atan2(v2(0), v2(1));
+       const double s1 = std::atan2(v1(0), v1(1));
+       const double s2 = std::atan2(v2(0), v2(1));
        return ( counter ? (s1>s2) : (s2>s1));
       }
 };

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.