From a8da02b20cb5a4b0877c9e53a732eba213becefa Mon Sep 17 00:00:00 2001 From: Ralf Hartmann Date: Tue, 24 Feb 2004 07:35:11 +0000 Subject: [PATCH] Add some missing std's and some missing static_casts. git-svn-id: https://svn.dealii.org/trunk@8513 0785d39b-7218-0410-832d-ea1e28bc413d --- tests/deal.II/subdomain_ids.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/deal.II/subdomain_ids.cc b/tests/deal.II/subdomain_ids.cc index 8ea0687d06..ce6c3ef2c7 100644 --- a/tests/deal.II/subdomain_ids.cc +++ b/tests/deal.II/subdomain_ids.cc @@ -150,7 +150,7 @@ void test () dof_handler.distribute_dofs (fe); const unsigned int cells_per_direction - = static_cast(rint(pow(tria.n_active_cells(), 1./dim))); + = static_cast(rint(std::pow(tria.n_active_cells(), 1./dim))); std::vector selected_dofs (dof_handler.n_dofs()); for (unsigned int subdomain=0; subdomain<(1<(cells_per_direction/2+1),dim), ExcNumberMismatch(std::count (selected_dofs.begin(), selected_dofs.end(), true), - (int)pow(cells_per_direction/2+1,dim))); + std::pow(static_cast(cells_per_direction/2+1),dim))); } deallog << "Check 4 (dim=" << dim << ") ok" << std::endl; }; -- 2.39.5