@@ -216,7 +216,7 @@ class CBaseMPIWrapper {
216216 MPI_Gather (sendbuf, sendcnt, sendtype, recvbuf, recvcnt, recvtype, root, comm);
217217 }
218218
219- static inline void Scatter (void * sendbuf, int sendcnt, Datatype sendtype, void * recvbuf, int recvcnt,
219+ static inline void Scatter (const void * sendbuf, int sendcnt, Datatype sendtype, void * recvbuf, int recvcnt,
220220 Datatype recvtype, int root, Comm comm) {
221221 MPI_Scatter (sendbuf, sendcnt, sendtype, recvbuf, recvcnt, recvtype, root, comm);
222222 }
@@ -428,7 +428,7 @@ class CMediMPIWrapper : public CBaseMPIWrapper {
428428 convertComm (comm));
429429 }
430430
431- static inline void Scatter (void * sendbuf, int sendcnt, Datatype sendtype, void * recvbuf, int recvcnt,
431+ static inline void Scatter (const void * sendbuf, int sendcnt, Datatype sendtype, void * recvbuf, int recvcnt,
432432 Datatype recvtype, int root, Comm comm) {
433433 AMPI_Scatter (sendbuf, sendcnt, convertDatatype (sendtype), recvbuf, recvcnt, convertDatatype (recvtype), root,
434434 convertComm (comm));
@@ -621,7 +621,7 @@ class CBaseMPIWrapper {
621621 CopyData (sendbuf, recvbuf, sendcnt, sendtype);
622622 }
623623
624- static inline void Scatter (void * sendbuf, int sendcnt, Datatype sendtype, void * recvbuf, int recvcnt,
624+ static inline void Scatter (const void * sendbuf, int sendcnt, Datatype sendtype, void * recvbuf, int recvcnt,
625625 Datatype recvtype, int root, Comm comm) {
626626 CopyData (sendbuf, recvbuf, sendcnt, sendtype);
627627 }
0 commit comments