X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/cdf6a962eb4e88efbed3df9c41343adabcf09e6c..ea74f5d95928a521a588737e81f1de94eef25d19:/src/smpi/colls/bcast/bcast-flattree.cpp diff --git a/src/smpi/colls/bcast/bcast-flattree.cpp b/src/smpi/colls/bcast/bcast-flattree.cpp index 175c8751f9..8ae4577a47 100644 --- a/src/smpi/colls/bcast/bcast-flattree.cpp +++ b/src/smpi/colls/bcast/bcast-flattree.cpp @@ -1,15 +1,14 @@ -/* Copyright (c) 2013-2019. The SimGrid Team. +/* Copyright (c) 2013-2022. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ #include "../colls_private.hpp" -namespace simgrid{ -namespace smpi{ -int -Coll_bcast_flattree::bcast(void *buff, int count, MPI_Datatype data_type, - int root, MPI_Comm comm) +namespace simgrid { +namespace smpi { +int bcast__flattree(void *buff, int count, MPI_Datatype data_type, + int root, MPI_Comm comm) { int i, rank, num_procs; int tag = COLL_TAG_BCAST; @@ -22,7 +21,7 @@ Coll_bcast_flattree::bcast(void *buff, int count, MPI_Datatype data_type, } else { - MPI_Request* reqs = new MPI_Request[num_procs - 1]; + auto* reqs = new MPI_Request[num_procs - 1]; MPI_Request* req_ptr = reqs; // Root sends data to all others