]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Fix some places where <number> is needed, but <float> was used.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 8 Sep 2000 09:50:55 +0000 (09:50 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 8 Sep 2000 09:50:55 +0000 (09:50 +0000)
git-svn-id: https://svn.dealii.org/trunk@3310 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/grid/grid_refinement.cc

index 2ff5f96d6795e5240920748a7701949d1ed7d00c..85f8f9acd71c8eeaafaca4580e7871637ea820c5 100644 (file)
@@ -127,7 +127,7 @@ GridRefinement::refine_and_coarsen_fixed_fraction (Triangulation<dim>   &tria,
   Vector<number> tmp(criteria);
   const double total_error = tmp.l1_norm();
 
-  Vector<float> partial_sums(criteria.size());
+  Vector<number> partial_sums(criteria.size());
   
                                   // sort the largest criteria to the
                                   // beginning of the vector
@@ -135,7 +135,7 @@ GridRefinement::refine_and_coarsen_fixed_fraction (Triangulation<dim>   &tria,
   partial_sum (tmp.begin(), tmp.end(), partial_sums.begin());
 
                                   // compute thresholds
-  const Vector<float>::const_iterator
+  const typename Vector<number>::const_iterator
     q = lower_bound (partial_sums.begin(), partial_sums.end(),
                     top_fraction*total_error),
     p = upper_bound (partial_sums.begin(), partial_sums.end(),

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.