]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Remove CellId::to_cell
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 28 Jun 2022 18:07:28 +0000 (14:07 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Wed, 29 Jun 2022 14:38:39 +0000 (10:38 -0400)
doc/news/changes/incompatibilities/20220628Arndt [new file with mode: 0644]
include/deal.II/grid/cell_id.h
source/grid/cell_id.cc
tests/distributed_grids/refine_periodic_02.cc

diff --git a/doc/news/changes/incompatibilities/20220628Arndt b/doc/news/changes/incompatibilities/20220628Arndt
new file mode 100644 (file)
index 0000000..a6abdd7
--- /dev/null
@@ -0,0 +1,3 @@
+Removed: The deprecated member function CellId::to_cell() has been removed.
+<br>
+(Daniel Arndt, 2022/06/28)
index e848901744417a87d9db0df9018cc5c02b78dae2..a98d9aa6b2b1ee7a76e6297ce2749e8e40876339 100644 (file)
@@ -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 <int dim, int spacedim>
-  DEAL_II_DEPRECATED typename Triangulation<dim, spacedim>::cell_iterator
-  to_cell(const Triangulation<dim, spacedim> &tria) const;
-
   /**
    * Compare two CellId objects for equality.
    */
index cd8416f877e0f4ed3a3b64c0358c4880951232d3..79b01a866081b1ba0e7a3b8dc7ef845565e12f35 100644 (file)
@@ -161,15 +161,6 @@ CellId::to_string() const
 }
 
 
-
-template <int dim, int spacedim>
-typename Triangulation<dim, spacedim>::cell_iterator
-CellId::to_cell(const Triangulation<dim, spacedim> &tria) const
-{
-  return tria.create_cell_iterator(*this);
-}
-
-
 // explicit instantiations
 #include "cell_id.inst"
 
index 45f771ad5069dbb074c047397b7cacbeeb2f0a8d..646119c12380119f66be2180c0f19f135b53e854 100644 (file)
@@ -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;
 

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.