From b69c639612ba01add6a190fe41ff08e717d83a1a Mon Sep 17 00:00:00 2001 From: hartmann Date: Mon, 23 Feb 2004 13:57:39 +0000 Subject: [PATCH] Add missing std. Add missing cast from int to double. git-svn-id: https://svn.dealii.org/trunk@8486 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/deal.II/boundaries.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/deal.II/boundaries.cc b/tests/deal.II/boundaries.cc index 09f446600d..0e0329e3ad 100644 --- a/tests/deal.II/boundaries.cc +++ b/tests/deal.II/boundaries.cc @@ -45,7 +45,7 @@ class MySquareFunction : public Function virtual double value (const Point &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 &p, Vector &values) const @@ -90,7 +90,7 @@ check () GridGenerator::hyper_ball(tr, Point(), 1); } else - GridGenerator::hyper_cube(tr, -1./sqrt(dim),1./sqrt(dim)); + GridGenerator::hyper_cube(tr, -1./std::sqrt(static_cast(dim)),1./std::sqrt(static_cast(dim))); if (dim != 1) { static const HyperBallBoundary boundary; -- 2.39.5