From: Martin Kronbichler Date: Fri, 30 Jun 2023 05:52:39 +0000 (+0200) Subject: Merge pull request #15525 from bangerth/add-indices-dev X-Git-Tag: relicensing~846 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e13307c507ce0318d956d81503bac95cd79f6b5d;p=dealii.git Merge pull request #15525 from bangerth/add-indices-dev Do not remove duplicates before inserting index set elements. --- e13307c507ce0318d956d81503bac95cd79f6b5d diff --cc include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h index 0307042e62,b936273c7d..e0589e3989 --- a/include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h +++ b/include/deal.II/multigrid/mg_transfer_global_coarsening.templates.h @@@ -762,20 -767,12 +762,17 @@@ namespace interna } } - const int ierr_1 = - MPI_Waitall(requests.size(), requests.data(), MPI_STATUSES_IGNORE); - AssertThrowMPI(ierr_1); + if (!requests.empty()) + { + const int ierr_1 = MPI_Waitall(requests.size(), + requests.data(), + MPI_STATUSES_IGNORE); + AssertThrowMPI(ierr_1); + } } +#endif std::sort(ghost_indices.begin(), ghost_indices.end()); - ghost_indices.erase(std::unique(ghost_indices.begin(), - ghost_indices.end()), - ghost_indices.end()); this->is_extended_ghosts = IndexSet(mg_level_fine == numbers::invalid_unsigned_int ?