From: Wolfgang Bangerth Date: Mon, 13 Mar 2023 21:29:39 +0000 (-0600) Subject: Reduce the number of different instantiations. X-Git-Tag: v9.5.0-rc1~425^2~3 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fea60f549e1b39fedb1809a172ffcb07d0df8e80;p=dealii.git Reduce the number of different instantiations. --- 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); }