From: Daniel Arndt Date: Sat, 18 Jan 2020 05:03:18 +0000 (-0600) Subject: Fix tests using DataOut::active_cell_iterator X-Git-Tag: v9.2.0-rc1~642^2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F9385%2Fhead;p=dealii.git Fix tests using DataOut::active_cell_iterator --- diff --git a/tests/data_out/data_out_08.cc b/tests/data_out/data_out_08.cc index 597cbeab3d..d7d0be3ec6 100644 --- a/tests/data_out/data_out_08.cc +++ b/tests/data_out/data_out_08.cc @@ -86,8 +86,8 @@ public: const IteratorFilters::SubdomainEqualTo predicate(subdomain_id); return ++( - FilteredIterator::cell_iterator>(predicate, - old_cell)); + FilteredIterator::active_cell_iterator>( + predicate, old_cell)); } else return old_cell; diff --git a/tests/mpi/p4est_2d_constraintmatrix_04.cc b/tests/mpi/p4est_2d_constraintmatrix_04.cc index e708e5cf66..18053718a5 100644 --- a/tests/mpi/p4est_2d_constraintmatrix_04.cc +++ b/tests/mpi/p4est_2d_constraintmatrix_04.cc @@ -67,8 +67,7 @@ public: virtual typename DataOut::cell_iterator first_cell() { - typename DataOut::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::active_cell_iterator>( - predicate, old_cell)); + return ++( + FilteredIterator::active_cell_iterator>( + predicate, old_cell)); } else return old_cell; diff --git a/tests/mpi/p4est_3d_constraintmatrix_03.cc b/tests/mpi/p4est_3d_constraintmatrix_03.cc index 0e206e2f03..59dff0a4bf 100644 --- a/tests/mpi/p4est_3d_constraintmatrix_03.cc +++ b/tests/mpi/p4est_3d_constraintmatrix_03.cc @@ -67,8 +67,7 @@ public: virtual typename DataOut::cell_iterator first_cell() { - typename DataOut::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::active_cell_iterator>( - predicate, old_cell)); + return ++( + FilteredIterator::active_cell_iterator>( + predicate, old_cell)); } else return old_cell;