@@ -65,7 +65,7 @@ int FC_FUNC( mpi_gather , MPI_GATHER )
6565}
6666
6767
68- int MPI_Gather (void * sendbuf , int sendcount , MPI_Datatype sendtype ,
68+ int MPI_Gather (const void * sendbuf , int sendcount , MPI_Datatype sendtype ,
6969 void * recvbuf , int recvcount , MPI_Datatype recvtype ,
7070 int root , MPI_Comm comm )
7171{
@@ -104,8 +104,8 @@ int FC_FUNC( mpi_gatherv , MPI_GATHERV )
104104}
105105
106106
107- int MPI_Gatherv (void * sendbuf , int sendcount , MPI_Datatype sendtype ,
108- void * recvbuf , int * recvcounts , int * displs ,
107+ int MPI_Gatherv (const void * sendbuf , int sendcount , MPI_Datatype sendtype ,
108+ void * recvbuf , const int recvcounts [], const int displs [] ,
109109 MPI_Datatype recvtype , int root , MPI_Comm comm )
110110{
111111 int offset ;
@@ -151,7 +151,7 @@ int FC_FUNC( mpi_allgather , MPI_ALLGATHER )
151151}
152152
153153
154- int MPI_Allgather (void * sendbuf , int sendcount , MPI_Datatype sendtype ,
154+ int MPI_Allgather (const void * sendbuf , int sendcount , MPI_Datatype sendtype ,
155155 void * recvbuf , int recvcount , MPI_Datatype recvtype ,
156156 MPI_Comm comm )
157157{
@@ -182,8 +182,8 @@ int FC_FUNC( mpi_allgatherv , MPI_ALLGATHERV )
182182}
183183
184184
185- int MPI_Allgatherv (void * sendbuf , int sendcount , MPI_Datatype sendtype ,
186- void * recvbuf , int * recvcounts , int * displs ,
185+ int MPI_Allgatherv (const void * sendbuf , int sendcount , MPI_Datatype sendtype ,
186+ void * recvbuf , const int recvcounts [], const int displs [] ,
187187 MPI_Datatype recvtype , MPI_Comm comm )
188188{
189189 int offset ;
@@ -222,7 +222,7 @@ int FC_FUNC( mpi_scatter, MPI_SCATTER )
222222 return MPI_SUCCESS ;
223223}
224224
225- int MPI_Scatter (void * sendbuf , int sendcount , MPI_Datatype sendtype ,
225+ int MPI_Scatter (const void * sendbuf , int sendcount , MPI_Datatype sendtype ,
226226 void * recvbuf , int recvcount , MPI_Datatype recvtype ,
227227 int root , MPI_Comm comm )
228228{
@@ -262,7 +262,7 @@ int FC_FUNC( mpi_scatterv , MPI_SCATTERV )
262262
263263
264264
265- int MPI_Scatterv (void * sendbuf , int * sendcounts , int * displs ,
265+ int MPI_Scatterv (const void * sendbuf , const int sendcounts [], const int displs [] ,
266266 MPI_Datatype sendtype , void * recvbuf , int recvcount ,
267267 MPI_Datatype recvtype , int root , MPI_Comm comm )
268268{
@@ -307,7 +307,7 @@ int FC_FUNC( mpi_reduce , MPI_REDUCE )
307307
308308
309309
310- int MPI_Reduce (void * sendbuf , void * recvbuf , int count ,
310+ int MPI_Reduce (const void * sendbuf , void * recvbuf , int count ,
311311 MPI_Datatype datatype , MPI_Op op , int root , MPI_Comm comm )
312312
313313{
@@ -338,7 +338,7 @@ int FC_FUNC( mpi_allreduce , MPI_ALLREDUCE )
338338}
339339
340340
341- int MPI_Allreduce (void * sendbuf , void * recvbuf , int count ,
341+ int MPI_Allreduce (const void * sendbuf , void * recvbuf , int count ,
342342 MPI_Datatype datatype , MPI_Op op , MPI_Comm comm )
343343{
344344 if (sendbuf == MPI_IN_PLACE )
@@ -369,7 +369,7 @@ int FC_FUNC(mpi_reduce_scatter, MPI_REDUCE_SCATTER)
369369}
370370
371371
372- int MPI_Reduce_scatter (void * sendbuf , void * recvbuf , int * recvcounts ,
372+ int MPI_Reduce_scatter (const void * sendbuf , void * recvbuf , const int recvcounts [] ,
373373 MPI_Datatype datatype , MPI_Op op , MPI_Comm comm )
374374{
375375 copy_data2 (sendbuf , recvcounts [0 ], datatype , recvbuf , recvcounts [0 ], datatype );
@@ -392,7 +392,7 @@ int FC_FUNC( mpi_scan , MPI_SCAN)
392392
393393
394394
395- int MPI_Scan (void * sendbuf , void * recvbuf , int count ,
395+ int MPI_Scan (const void * sendbuf , void * recvbuf , int count ,
396396 MPI_Datatype datatype , MPI_Op op , MPI_Comm comm )
397397{
398398 copy_data2 (sendbuf , count , datatype , recvbuf , count , datatype );
@@ -415,7 +415,7 @@ int FC_FUNC( mpi_alltoall , MPI_ALLTOALL )
415415}
416416
417417
418- int MPI_Alltoall (void * sendbuf , int sendcount , MPI_Datatype sendtype ,
418+ int MPI_Alltoall (const void * sendbuf , int sendcount , MPI_Datatype sendtype ,
419419 void * recvbuf , int recvcount , MPI_Datatype recvtype ,
420420 MPI_Comm comm )
421421{
@@ -442,10 +442,10 @@ int FC_FUNC( mpi_alltoallv , MPI_ALLTOALLV )
442442 return MPI_SUCCESS ;
443443}
444444
445- int MPI_Alltoallv (void * sendbuf , int * sendcounts ,
446- int * sdispls , MPI_Datatype sendtype ,
447- void * recvbuf , int * recvcounts ,
448- int * rdispls , MPI_Datatype recvtype ,
445+ int MPI_Alltoallv (const void * sendbuf , const int sendcounts [] ,
446+ const int sdispls [] , MPI_Datatype sendtype ,
447+ void * recvbuf , const int recvcounts [] ,
448+ const int rdispls [] , MPI_Datatype recvtype ,
449449 MPI_Comm comm )
450450
451451{
@@ -488,10 +488,10 @@ int FC_FUNC( mpi_alltoallw , MPI_ALLTOALLW )
488488}
489489
490490
491- int MPI_Alltoallw (void * sendbuf , int * sendcounts ,
492- int * sdispls , MPI_Datatype * sendtypes ,
493- void * recvbuf , int * recvcounts ,
494- int * rdispls , MPI_Datatype * recvtypes ,
491+ int MPI_Alltoallw (const void * sendbuf , const int sendcounts [] ,
492+ const int sdispls [], const MPI_Datatype sendtypes [] ,
493+ void * recvbuf , const int recvcounts [] ,
494+ const int rdispls [], const MPI_Datatype recvtypes [] ,
495495 MPI_Comm comm )
496496
497497{
0 commit comments