]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add some missing std to make it compile with MIPSpro 7.41.
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 20 Aug 2007 07:58:15 +0000 (07:58 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 20 Aug 2007 07:58:15 +0000 (07:58 +0000)
git-svn-id: https://svn.dealii.org/trunk@14977 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/base/source/flow_function.cc

index 1235bfedf467b44bd91be2c0a6428efb13dafd4d..ba65ddd324d1f9c21729f149260ff12679cd590b 100644 (file)
@@ -549,12 +549,12 @@ namespace Functions
   {
     long double r2 = Reynolds/2.;
     long double b = 4*M_PI*M_PI;
-    long double l = -b/(r2+sqrt(r2*r2+b));
+    long double l = -b/(r2+std::sqrt(r2*r2+b));
     lambda = l;
                                     // mean pressure for a domain
                                     // spreading from -.5 to 1.5 in
                                     // x-direction
-    p_average = 1/(8*l)*(exp(3.*l)-exp(-l));
+    p_average = 1/(8*l)*(std::exp(3.*l)-std::exp(-l));
   }
   
   
@@ -602,9 +602,9 @@ namespace Functions
        const double x = points[i](0);
        const double y = points[i](1);
        
-       const double elx = exp(lambda*x);
-       const double cy = cos(2*M_PI*y);
-       const double sy = sin(2*M_PI*y);
+       const double elx = std::exp(lambda*x);
+       const double cy = std::cos(2*M_PI*y);
+       const double sy = std::sin(2*M_PI*y);
        
                                         // u
        gradients[0][i][0] = -lambda*elx*cy;

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.