]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix some missing std::
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 18 Dec 2002 20:30:40 +0000 (20:30 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Wed, 18 Dec 2002 20:30:40 +0000 (20:30 +0000)
git-svn-id: https://svn.dealii.org/trunk@6854 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/fe/fe_q_hierarchical.cc

index 4ae51884814435789b62954eae9f308eaeefbe54..dd6319f543779205ed2388bfdf30e9ad53e1aeb0 100644 (file)
@@ -22,6 +22,8 @@
 #include <fe/fe_q_hierarchical.h>
 #include <fe/fe_values.h>
 
+#include <cmath>
+
 
 
 template <int dim>
@@ -94,14 +96,14 @@ FE_Q_Hierarchical<dim>::FE_Q_Hierarchical (const unsigned int degree)
          if (c==0)
          {
            dofs_subcell[c](j,k) = ((k+j) % 2 == 0) ? 
-             pow(.5,k)*factor: -pow(.5,k)*factor;
-           dofs_cell[c](j,k) = pow(2.,j)*factor;
+             std::pow(.5,k)*factor : -std::pow(.5,k)*factor;
+           dofs_cell[c](j,k) = std::pow(2.,j)*factor;
          }
          else
          {
-           dofs_subcell[c](j,k) = pow(.5,k)*factor;
+           dofs_subcell[c](j,k) = std::pow(.5,k)*factor;
            dofs_cell[c](j,k) = ((k+j) % 2 == 0) ? 
-             pow(2.,j)*factor : -pow(2.,j)*factor;
+             std::pow(2.,j)*factor : -std::pow(2.,j)*factor;
          }
        }
       }

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.