Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add new entry in Release_Notes.
[simgrid.git] / src / smpi / colls / allgather / allgather-3dmesh.cpp
index c7f3b90..6cfa9dc 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
@@ -92,9 +92,7 @@ static bool is_3dmesh(int num, int* i, int* j, int* k)
  * follows "simple"
  * Author: Ahmad Faraj
 ****************************************************************************/
-namespace simgrid{
-namespace smpi{
-
+namespace simgrid::smpi {
 
 int allgather__3dmesh(const void *send_buff, int send_count,
                       MPI_Datatype send_type, void *recv_buff,
@@ -131,7 +129,7 @@ int allgather__3dmesh(const void *send_buff, int send_count,
 
   block_size = extent * send_count;
 
-  MPI_Request* req     = new MPI_Request[num_reqs];
+  auto* req            = new MPI_Request[num_reqs];
   MPI_Request* req_ptr = req;
 
   // do local allgather/local copy
@@ -208,6 +206,4 @@ int allgather__3dmesh(const void *send_buff, int send_count,
   return MPI_SUCCESS;
 }
 
-
-}
-}
+} // namespace simgrid::smpi