Do not remove duplicates before inserting index set elements.
}
}
- 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 ?
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