Skip to content

Fix/MPIData::getType when T is a reference

I encountered a bug in mpidata.hh, when I want to use it with allreduce and MPI_SUM and double&. The problem was that MPIData detected a custom MPI_Datatype where MPI_DOUBLE is necessary to use it with MPI_SUM.

This MR fixes that problem by using decay_t in the MPIData class.

Merge request reports

Loading