]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove unused check in mpi/tria_copy_triangulation 4231/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 8 Apr 2017 10:01:41 +0000 (12:01 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Sat, 8 Apr 2017 10:02:27 +0000 (12:02 +0200)
tests/mpi/tria_copy_triangulation.cc

index c3991de6d687ad51430f5c3d3b99f3e038c095cc..34fbfb0b1029019233433b465fbc650561e241ac 100644 (file)
@@ -59,10 +59,13 @@ void test()
 
   new_tr.copy_triangulation (tr);
 
+  Assert (tr.n_active_cells() == new_tr.n_active_cells(), ExcInternalError());
+  Assert (tr.n_levels() == new_tr.n_levels(), ExcInternalError());
+
   typename Triangulation<dim,dim>::active_cell_iterator cell1, cell2;
 
   for (cell1 = tr.begin_active(), cell2 = new_tr.begin_active();
-       cell1 != tr.end(), cell2 != new_tr.end();
+       cell1 != tr.end();
        ++cell1, ++cell2)
     {
       if (cell1->is_locally_owned ())
@@ -109,11 +112,6 @@ void test()
       else
         Assert (false, ExcInternalError());
     };
-
-//   assert_tria_equal("tria_copy_triangulation", tr, new_tr);
-
-  Assert (tr.n_active_cells() == new_tr.n_active_cells(), ExcInternalError());
-  Assert (tr.n_levels() == new_tr.n_levels(), 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.