]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add some missing std::
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 13 Feb 2004 14:56:04 +0000 (14:56 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Fri, 13 Feb 2004 14:56:04 +0000 (14:56 +0000)
git-svn-id: https://svn.dealii.org/trunk@8465 0785d39b-7218-0410-832d-ea1e28bc413d

tests/fe/fe_tools_test.cc

index 61550ad44f5dae0f9d282cf0ab4f3f3363b30c82..2f89a4ef15babb912d5a526c6c3c989c3a9422db 100644 (file)
@@ -36,7 +36,7 @@
 #include <fstream>
 #include <cmath>
 
-const double pi=acos(-1);
+const double pi=std::acos(-1.);
 
 class TestFunction: public Function<2>
 {
@@ -54,7 +54,7 @@ TestFunction::value(const Point<2> &p,
                    const unsigned int component) const
 {
   Assert(component==0, ExcInternalError());
-  return sin(pi*p(0))*cos(pi*p(1));
+  return std::sin(pi*p(0))*std::cos(pi*p(1));
 }
 
 

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.