]> https://gitweb.dealii.org/ - dealii-svn.git/commitdiff
Make test use iterator typedefs rather than the underlying type to make it more robus...
authorbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 6 Nov 2008 20:30:33 +0000 (20:30 +0000)
committerbangerth <bangerth@0785d39b-7218-0410-832d-ea1e28bc413d>
Thu, 6 Nov 2008 20:30:33 +0000 (20:30 +0000)
git-svn-id: https://svn.dealii.org/trunk@17498 0785d39b-7218-0410-832d-ea1e28bc413d

tests/deal.II/mesh_smoothing_01.cc
tests/deal.II/mesh_smoothing_02.cc

index 420fe765e8bbf92cfd1f95cba97481644fcfe29d..9e4b6467e6c9f158838a039873fda9ec99c9212a 100644 (file)
@@ -42,7 +42,7 @@ using namespace dealii;
 
 
 template <int dim>
-bool cell_is_patch_level_1 (const TriaIterator<dim, dealii::CellAccessor<dim> > &cell)
+bool cell_is_patch_level_1 (const typename Triangulation<dim>::cell_iterator &cell)
 {
   Assert (cell->active() == false, ExcInternalError());
 
@@ -167,7 +167,7 @@ void test ()
                  (cell->coarsen_flag_set() == false),
                  ExcInternalError());
          if (!cell->active())
-           Assert (cell_is_patch_level_1(cell),
+           Assert (cell_is_patch_level_1<2>(cell),
                    ExcInternalError());
        }
 
index f256873a93a2112284c541dad11acb7273c5500d..482734e1b5ae9459909530d82d755aa6678ee0c1 100644 (file)
@@ -53,7 +53,7 @@ using namespace dealii;
 
 
 template <int dim>
-bool cell_is_patch_level_1 (const TriaIterator<dim, dealii::CellAccessor<dim> > &cell)
+bool cell_is_patch_level_1 (const typename Triangulation<dim>::cell_iterator &cell)
 {
   Assert (cell->active() == false, ExcInternalError());
 
@@ -117,7 +117,7 @@ void test ()
              (cell->coarsen_flag_set() == false),
              ExcInternalError());
       if (!cell->active())
-       Assert (cell_is_patch_level_1(cell),
+       Assert (cell_is_patch_level_1<2>(cell),
                ExcInternalError());
     }
 

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.