]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Add some missing std's and some missing static_casts.
authorRalf Hartmann <Ralf.Hartmann@dlr.de>
Tue, 24 Feb 2004 07:35:11 +0000 (07:35 +0000)
committerRalf Hartmann <Ralf.Hartmann@dlr.de>
Tue, 24 Feb 2004 07:35:11 +0000 (07:35 +0000)
git-svn-id: https://svn.dealii.org/trunk@8513 0785d39b-7218-0410-832d-ea1e28bc413d

tests/deal.II/subdomain_ids.cc

index 8ea0687d06456de7ab3787cf322ac37489f49fb5..ce6c3ef2c799120c226a5e838d4b6ea98f02432a 100644 (file)
@@ -150,7 +150,7 @@ void test ()
       dof_handler.distribute_dofs (fe);
 
       const unsigned int cells_per_direction
-       = static_cast<unsigned int>(rint(pow(tria.n_active_cells(), 1./dim)));
+       = static_cast<unsigned int>(rint(std::pow(tria.n_active_cells(), 1./dim)));
       
       std::vector<bool> selected_dofs (dof_handler.n_dofs());
       for (unsigned int subdomain=0; subdomain<(1<<dim); ++subdomain)
@@ -161,11 +161,11 @@ void test ()
                                                        selected_dofs.end(),
                                                        true))
                  ==
-                 pow(cells_per_direction/2+1,dim),
+                 std::pow(static_cast<double>(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<double>(cells_per_direction/2+1),dim)));
        }
       deallog << "Check 4 (dim=" << dim << ") ok" << std::endl;      
     };

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.