]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Avoid some failure of icc where it doesn't want to accept a typedef for an argument.
authorwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 2 Apr 2004 23:52:53 +0000 (23:52 +0000)
committerwolf <wolf@0785d39b-7218-0410-832d-ea1e28bc413d>
Fri, 2 Apr 2004 23:52:53 +0000 (23:52 +0000)
git-svn-id: https://svn.dealii.org/trunk@8961 0785d39b-7218-0410-832d-ea1e28bc413d

deal.II/deal.II/source/numerics/error_estimator.cc

index 605943d6123e7a673cb48e7d64227e0256da4036..3e1ec03aaedc5257b71c1b530bab319972e9cd0f 100644 (file)
@@ -43,9 +43,9 @@ double sqr (const double x)
 }
 
 
-template <int dim>
+template <typename CellIterator>
 static
-void advance_by_n (typename DoFHandler<dim>::active_cell_iterator &cell,
+void advance_by_n (CellIterator &cell,
                    const unsigned int n)
 {
   for (unsigned int t=0;
@@ -516,8 +516,7 @@ estimate_some (const Mapping<dim>                  &mapping,
 
   
                                   // loop over all cells for this thread
-  for (; cell!=dof_handler.end();
-       advance_by_n<dim>(cell,this_thread.second))
+  for (; cell!=dof_handler.end(); advance_by_n(cell,this_thread.second))
     {
       
                                       // loop over all faces of this cell

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.