]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Add missing std. Add missing cast from int to double.
authorhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 23 Feb 2004 13:57:39 +0000 (13:57 +0000)
committerhartmann <hartmann@0785d39b-7218-0410-832d-ea1e28bc413d>
Mon, 23 Feb 2004 13:57:39 +0000 (13:57 +0000)
git-svn-id: https://svn.dealii.org/trunk@8486 0785d39b-7218-0410-832d-ea1e28bc413d

tests/deal.II/boundaries.cc

index 09f446600d63873dc112ce81f31d9a56031020e5..0e0329e3adefaab459ca12f764d9a0912f8e8a75 100644 (file)
@@ -45,7 +45,7 @@ class MySquareFunction : public Function<dim>
     
     virtual double value (const Point<dim>   &p,
                          const unsigned int  component) const
-      {        return 100*(component+1)*p.square()*sin(p.square()); };
+      {        return 100*(component+1)*p.square()*std::sin(p.square()); };
     
     virtual void   vector_value (const Point<dim>   &p,
                                 Vector<double>     &values) const
@@ -90,7 +90,7 @@ check ()
       GridGenerator::hyper_ball(tr, Point<dim>(), 1);
     }
   else
-    GridGenerator::hyper_cube(tr, -1./sqrt(dim),1./sqrt(dim));
+    GridGenerator::hyper_cube(tr, -1./std::sqrt(static_cast<double>(dim)),1./std::sqrt(static_cast<double>(dim)));
   if (dim != 1)
     {
       static const HyperBallBoundary<dim> boundary;

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.