Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add new entry in Release_Notes.
[simgrid.git] / src / smpi / colls / allgatherv / allgatherv-mpich-ring.cpp
index 155b24f..8be65a3 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2013-2019. The SimGrid Team.
+/* Copyright (c) 2013-2023. The SimGrid Team.
  * All rights reserved.                                                     */
 
 /* This program is free software; you can redistribute it and/or modify it
  *   comm: communication
  ****************************************************************************/
 
-namespace simgrid{
-namespace smpi{
+namespace simgrid::smpi {
 
-int
-Coll_allgatherv_mpich_ring::allgatherv(const void *sendbuf, int sendcount,
-    MPI_Datatype send_type, void *recvbuf,
-    const int *recvcounts, const int *displs, MPI_Datatype recvtype,
-    MPI_Comm comm)
+int allgatherv__mpich_ring(const void *sendbuf, int sendcount,
+                           MPI_Datatype send_type, void *recvbuf,
+                           const int *recvcounts, const int *displs, MPI_Datatype recvtype,
+                           MPI_Comm comm)
 {
 
-  char * sbuf = NULL, * rbuf = NULL;
+  char *sbuf = nullptr, *rbuf = nullptr;
   int soffset, roffset;
   int torecv=0, tosend=0, min, rank, comm_size;
   int sendnow, recvnow;
@@ -127,5 +125,4 @@ Coll_allgatherv_mpich_ring::allgatherv(const void *sendbuf, int sendcount,
   return MPI_SUCCESS;
 }
 
-}
-}
+} // namespace simgrid::smpi