]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Cast arguments to std::pow.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 16 Dec 2011 22:21:36 +0000 (22:21 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 16 Dec 2011 22:21:36 +0000 (22:21 +0000)
git-svn-id: https://svn.dealii.org/trunk@24837 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/grid/grid_refinement.cc

index 4d0dd20bf7ae4d9cdc0997797dd40be885e90ef6..33558a368be0646f1f6eeb7a63c767f04fca0713 100644 (file)
@@ -519,7 +519,7 @@ GridRefinement::refine_and_coarsen_optimize (Triangulation<dim,spacedim> &tria,
 
   qsort_index(criteria,tmp,0,criteria.size()-1);
 
-  double s0 = (1-std::pow(2,-order)) * criteria(tmp[0]);
+  double s0 = (1.-std::pow(2.,-1.*order)) * criteria(tmp[0]);
   double E  = criteria.l1_norm();
 
   unsigned int N = criteria.size();

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.