Skip to content

Conversion of Communication with No_Comm to MPI_Comm

Summary

In generic code with type-erasure (see e.g. dune-grid!661) we might have no access to the actual communication type, just know whether MPI is available or not. Some grid define No_Comm also in the case of MPI is found. In order to define a unified Communication type, this MR this allows to convert from Communication<No_Comm> to Communication<MPI_Comm> simply by setting MPI_Comm to MPI_COMM_SELF.

Merge request reports