X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/9104957deccc59e0e804215d5db498fabfd40d29..39e98567c557d81dd5011b8e2ae883d4674b0c9d:/src/smpi/colls/allgather/allgather-spreading-simple.cpp diff --git a/src/smpi/colls/allgather/allgather-spreading-simple.cpp b/src/smpi/colls/allgather/allgather-spreading-simple.cpp index 4d1972b1bb..d5c59b03bb 100644 --- a/src/smpi/colls/allgather/allgather-spreading-simple.cpp +++ b/src/smpi/colls/allgather/allgather-spreading-simple.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2013-2020. 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 @@ -67,9 +67,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * Author: Ahmad Faraj ****************************************************************************/ -namespace simgrid{ -namespace smpi{ - +namespace simgrid::smpi { int allgather__spreading_simple(const void *send_buff, int send_count, @@ -89,7 +87,7 @@ allgather__spreading_simple(const void *send_buff, int send_count, extent = send_type->get_extent(); num_reqs = (2 * num_procs) - 2; - MPI_Request* reqs = new MPI_Request[num_reqs]; + auto* reqs = new MPI_Request[num_reqs]; MPI_Request* req_ptr = reqs; Request::sendrecv(send_buff, send_count, send_type, rank, tag, (char *) recv_buff + rank * recv_count * extent, recv_count, @@ -116,5 +114,4 @@ allgather__spreading_simple(const void *send_buff, int send_count, return MPI_SUCCESS; } -} -} +} // namespace simgrid::smpi