]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Replace deprecated CellId::to_cell(). 11493/head
authorMarc Fehling <marc.fehling@gmx.net>
Fri, 8 Jan 2021 03:04:34 +0000 (20:04 -0700)
committerMarc Fehling <marc.fehling@gmx.net>
Fri, 8 Jan 2021 03:19:15 +0000 (20:19 -0700)
include/deal.II/grid/grid_tools.h
include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h
source/grid/grid_tools.cc
source/particles/particle_handler.cc

index 5352abbc1ae0a64fd0244950b6fe8e9e926ff8bc..ae933ff775500fdebd3aedb9d061b0363ccba72b 100644 (file)
@@ -4103,7 +4103,7 @@ namespace GridTools
           for (unsigned int c = 0; c < static_cast<unsigned int>(n_cells); ++c)
             {
               const auto cell =
-                CellId(cell_data_to_send[idx][c]).to_cell(*tria);
+                tria->create_cell_iterator(CellId(cell_data_to_send[idx][c]));
 
               MeshCellIteratorType                mesh_it(tria,
                                            cell->level(),
@@ -4176,7 +4176,7 @@ namespace GridTools
           for (unsigned int c = 0; c < cellinfo.cell_ids.size(); ++c, ++data)
             {
               const typename Triangulation<dim, spacedim>::cell_iterator
-                tria_cell = cellinfo.cell_ids[c].to_cell(*tria);
+                tria_cell = tria->create_cell_iterator(cellinfo.cell_ids[c]);
 
               MeshCellIteratorType cell(tria,
                                         tria_cell->level(),
index 2dda8777c641b481af1b6fd2abec4a31d5ed289c..4985e280006d9c21ea249b5263837e9c18d14e72 100644 (file)
@@ -551,7 +551,8 @@ namespace internal
             for (auto cell_id : i.second)
               {
                 typename MeshType::cell_iterator cell(
-                  *cell_id_translator.to_cell_id(cell_id).to_cell(tria_dst),
+                  *tria_dst.create_cell_iterator(
+                    cell_id_translator.to_cell_id(cell_id)),
                   &dof_handler_dst);
 
                 cell->get_dof_indices(indices);
@@ -580,8 +581,8 @@ namespace internal
           {
             const auto cell_id = cell_id_translator.to_cell_id(id);
 
-            typename MeshType::cell_iterator cell_(*cell_id.to_cell(tria_dst),
-                                                   &dof_handler_dst);
+            typename MeshType::cell_iterator cell_(
+              *tria_dst.create_cell_iterator(cell_id), &dof_handler_dst);
 
             cell_->get_dof_indices(indices);
 
@@ -695,7 +696,8 @@ namespace internal
           if (is_cell_locally_owned)
             {
               (typename MeshType::cell_iterator(
-                 *cell->id().to_cell(mesh_fine.get_triangulation()),
+                 *mesh_fine.get_triangulation().create_cell_iterator(
+                   cell->id()),
                  &mesh_fine))
                 ->get_dof_indices(dof_indices);
             }
@@ -732,7 +734,8 @@ namespace internal
           if (is_cell_locally_owned)
             {
               (typename MeshType::cell_iterator(
-                 *cell->id().to_cell(mesh_fine.get_triangulation()),
+                 *mesh_fine.get_triangulation().create_cell_iterator(
+                   cell->id()),
                  &mesh_fine))
                 ->child(c)
                 ->get_dof_indices(dof_indices);
index 51bb361ce9dbced57a8e74daeffae7dad84c65b1..a4fdbb3c0cdd4fdcf1e5ba2f9ded82d6421adb72 100644 (file)
@@ -5222,7 +5222,8 @@ namespace GridTools
         std::vector<typename Triangulation<dim, spacedim>::active_cell_iterator>
           cell_iter(n_cells);
         for (unsigned int c = 0; c < n_cells; ++c)
-          cell_iter[c] = cell_ids[c].to_cell(cache.get_triangulation());
+          cell_iter[c] =
+            cache.get_triangulation().create_cell_iterator(cell_ids[c]);
 
         internal::DistributedComputePointLocations::merge_into_point_locations(
           cell_iter,
index 797c2f1e52046963b0eaff5465c6128a86bbe8ae..93bbed5d120978573347b4bb33604770aeddad94 100644 (file)
@@ -1533,7 +1533,7 @@ namespace Particles
         recv_data_it = static_cast<const char *>(recv_data_it) + cellid_size;
 
         const typename Triangulation<dim, spacedim>::active_cell_iterator cell =
-          id.to_cell(*triangulation);
+          triangulation->create_cell_iterator(id);
 
         typename std::multimap<internal::LevelInd,
                                Particle<dim, spacedim>>::iterator

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.