]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Reduce the number of different instantiations.
authorWolfgang Bangerth <bangerth@colostate.edu>
Mon, 13 Mar 2023 21:29:39 +0000 (15:29 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Mon, 20 Mar 2023 23:46:18 +0000 (17:46 -0600)
source/distributed/tria_base.cc

index 25ee89faa489b3c79cfc4914525b7791d7d51d28..1b69fa841040ffaaae0b494a34290e29b3e7c21c 100644 (file)
@@ -450,7 +450,7 @@ namespace parallel
     // 4) determine the global indices of ghost cells
     std::vector<types::global_dof_index> is_ghost_vector;
     GridTools::exchange_cell_data_to_ghosts<types::global_cell_index>(
-      *this,
+      static_cast<dealii::Triangulation<dim, spacedim> &>(*this),
       [](const auto &cell) { return cell->global_active_cell_index(); },
       [&is_ghost_vector](const auto &cell, const auto &id) {
         cell->set_global_active_cell_index(id);
@@ -595,10 +595,15 @@ namespace parallel
 
     if (this->is_multilevel_hierarchy_constructed())
       GridTools::exchange_cell_data_to_level_ghosts<
-        std::vector<Point<spacedim>>>(*this, pack, unpack);
+        std::vector<Point<spacedim>>>(
+        static_cast<dealii::Triangulation<dim, spacedim> &>(*this),
+        pack,
+        unpack);
     else
       GridTools::exchange_cell_data_to_ghosts<std::vector<Point<spacedim>>>(
-        *this, pack, unpack);
+        static_cast<dealii::Triangulation<dim, spacedim> &>(*this),
+        pack,
+        unpack);
   }
 
 

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.