From fea60f549e1b39fedb1809a172ffcb07d0df8e80 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Mon, 13 Mar 2023 15:29:39 -0600 Subject: [PATCH] Reduce the number of different instantiations. --- source/distributed/tria_base.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/source/distributed/tria_base.cc b/source/distributed/tria_base.cc index 25ee89faa4..1b69fa8410 100644 --- a/source/distributed/tria_base.cc +++ b/source/distributed/tria_base.cc @@ -450,7 +450,7 @@ namespace parallel // 4) determine the global indices of ghost cells std::vector is_ghost_vector; GridTools::exchange_cell_data_to_ghosts( - *this, + static_cast &>(*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>>(*this, pack, unpack); + std::vector>>( + static_cast &>(*this), + pack, + unpack); else GridTools::exchange_cell_data_to_ghosts>>( - *this, pack, unpack); + static_cast &>(*this), + pack, + unpack); } -- 2.39.5