]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix tests using DataOut::active_cell_iterator 9385/head
authorDaniel Arndt <arndtd@ornl.gov>
Sat, 18 Jan 2020 05:03:18 +0000 (23:03 -0600)
committerDaniel Arndt <arndtd@ornl.gov>
Sat, 18 Jan 2020 05:03:53 +0000 (23:03 -0600)
tests/data_out/data_out_08.cc
tests/mpi/p4est_2d_constraintmatrix_04.cc
tests/mpi/p4est_3d_constraintmatrix_03.cc

index 597cbeab3dc3b3c12ef6d2d0e764e4f99cc1374a..d7d0be3ec68a64c77df0f0070d1cf8e083bb211e 100644 (file)
@@ -86,8 +86,8 @@ public:
         const IteratorFilters::SubdomainEqualTo predicate(subdomain_id);
 
         return ++(
-          FilteredIterator<typename DataOut<dim>::cell_iterator>(predicate,
-                                                                 old_cell));
+          FilteredIterator<typename Triangulation<dim>::active_cell_iterator>(
+            predicate, old_cell));
       }
     else
       return old_cell;
index e708e5cf66412eb8e41dadea745c8b399006bdbd..18053718a51c447a0314f000f65b2fc0a86605e6 100644 (file)
@@ -67,8 +67,7 @@ public:
   virtual typename DataOut<dim>::cell_iterator
   first_cell()
   {
-    typename DataOut<dim>::active_cell_iterator cell =
-      this->triangulation->begin_active();
+    auto cell = this->triangulation->begin_active();
     while ((cell != this->triangulation->end()) &&
            (cell->subdomain_id() != subdomain_id))
       ++cell;
@@ -83,8 +82,9 @@ public:
       {
         const IteratorFilters::SubdomainEqualTo predicate(subdomain_id);
 
-        return ++(FilteredIterator<typename DataOut<dim>::active_cell_iterator>(
-          predicate, old_cell));
+        return ++(
+          FilteredIterator<typename Triangulation<dim>::active_cell_iterator>(
+            predicate, old_cell));
       }
     else
       return old_cell;
index 0e206e2f03bbd75d69e3b034827770f97ea4f2c1..59dff0a4bf21b36d1576c06e1006c2b4c2602e97 100644 (file)
@@ -67,8 +67,7 @@ public:
   virtual typename DataOut<dim>::cell_iterator
   first_cell()
   {
-    typename DataOut<dim>::active_cell_iterator cell =
-      this->triangulation->begin_active();
+    auto cell = this->triangulation->begin_active();
     while ((cell != this->triangulation->end()) &&
            (cell->subdomain_id() != subdomain_id))
       ++cell;
@@ -83,8 +82,9 @@ public:
       {
         const IteratorFilters::SubdomainEqualTo predicate(subdomain_id);
 
-        return ++(FilteredIterator<typename DataOut<dim>::active_cell_iterator>(
-          predicate, old_cell));
+        return ++(
+          FilteredIterator<typename Triangulation<dim>::active_cell_iterator>(
+            predicate, old_cell));
       }
     else
       return old_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.