From d40cab8074c66e6d8473123b82116b258da2656e Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Tue, 28 Jun 2022 14:07:28 -0400 Subject: [PATCH] Remove CellId::to_cell --- doc/news/changes/incompatibilities/20220628Arndt | 3 +++ include/deal.II/grid/cell_id.h | 9 --------- source/grid/cell_id.cc | 9 --------- tests/distributed_grids/refine_periodic_02.cc | 4 ++-- 4 files changed, 5 insertions(+), 20 deletions(-) create mode 100644 doc/news/changes/incompatibilities/20220628Arndt diff --git a/doc/news/changes/incompatibilities/20220628Arndt b/doc/news/changes/incompatibilities/20220628Arndt new file mode 100644 index 0000000000..a6abdd7f5b --- /dev/null +++ b/doc/news/changes/incompatibilities/20220628Arndt @@ -0,0 +1,3 @@ +Removed: The deprecated member function CellId::to_cell() has been removed. +
+(Daniel Arndt, 2022/06/28) diff --git a/include/deal.II/grid/cell_id.h b/include/deal.II/grid/cell_id.h index e848901744..a98d9aa6b2 100644 --- a/include/deal.II/grid/cell_id.h +++ b/include/deal.II/grid/cell_id.h @@ -146,15 +146,6 @@ public: binary_type to_binary() const; - /** - * Return a cell_iterator to the cell represented by this CellId. - * - * @deprecated Use Triangulation::create_cell_iterator() instead. - */ - template - DEAL_II_DEPRECATED typename Triangulation::cell_iterator - to_cell(const Triangulation &tria) const; - /** * Compare two CellId objects for equality. */ diff --git a/source/grid/cell_id.cc b/source/grid/cell_id.cc index cd8416f877..79b01a8660 100644 --- a/source/grid/cell_id.cc +++ b/source/grid/cell_id.cc @@ -161,15 +161,6 @@ CellId::to_string() const } - -template -typename Triangulation::cell_iterator -CellId::to_cell(const Triangulation &tria) const -{ - return tria.create_cell_iterator(*this); -} - - // explicit instantiations #include "cell_id.inst" diff --git a/tests/distributed_grids/refine_periodic_02.cc b/tests/distributed_grids/refine_periodic_02.cc index 45f771ad50..646119c123 100644 --- a/tests/distributed_grids/refine_periodic_02.cc +++ b/tests/distributed_grids/refine_periodic_02.cc @@ -195,10 +195,10 @@ test() << "n_levels: " << tr.n_levels() << std::endl; for (const auto &id : marked_coarsen) - CellId(id).to_cell(tr)->set_coarsen_flag(); + tr.create_cell_iterator(CellId(id))->set_coarsen_flag(); for (const auto &id : marked_refine) - CellId(id).to_cell(tr)->set_refine_flag(); + tr.create_cell_iterator(CellId(id))->set_refine_flag(); deallog << "execute_coarsening_and_refinement()..." << std::endl; -- 2.39.5