]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make compile with intel icc.
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 20 Dec 2011 01:11:37 +0000 (01:11 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Tue, 20 Dec 2011 01:11:37 +0000 (01:11 +0000)
git-svn-id: https://svn.dealii.org/trunk@24840 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/source/grid/grid_refinement.cc

index 33558a368be0646f1f6eeb7a63c767f04fca0713..abde64548104ad63adfd2285ecdd2290db1f1180 100644 (file)
@@ -546,7 +546,7 @@ GridRefinement::refine_and_coarsen_optimize (Triangulation<dim,spacedim> &tria,
 
   for (M=1;M<criteria.size();++M)
     {
-      s0+= (1-std::pow(2.,-order)) * criteria(tmp[M]);
+      s0 += (1-std::pow(2.,-1.*order)) * criteria(tmp[M]);
 
       if ( std::pow(((std::pow(2.,dim)-1)*(1+M)+N), (double) order/dim) * (E-s0) <= min)
        {

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.