X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/ab92608267358b56adf7a803480fa2ad9608ed1b..f9436b840852218b39dce22d6057b6f223168daa:/src/smpi/colls/allgather/allgather-mvapich-smp.cpp diff --git a/src/smpi/colls/allgather/allgather-mvapich-smp.cpp b/src/smpi/colls/allgather/allgather-mvapich-smp.cpp index 6054049941..740c911f74 100644 --- a/src/smpi/colls/allgather/allgather-mvapich-smp.cpp +++ b/src/smpi/colls/allgather/allgather-mvapich-smp.cpp @@ -52,8 +52,8 @@ int Coll_allgather_mvapich2_smp::allgather(void *sendbuf,int sendcnt, MPI_Dataty if(comm->get_leaders_comm()==MPI_COMM_NULL){ comm->init_smp(); } - - if(!comm->is_uniform() || !comm->is_blocked()) + + if (not comm->is_uniform() || not comm->is_blocked()) THROWF(arg_error,0, "allgather MVAPICH2 smp algorithm can't be used with irregular deployment. Please insure that processes deployed on the same node are contiguous and that each node has the same number of processes"); if (recvcnt == 0) { @@ -114,8 +114,8 @@ int Coll_allgather_mvapich2_smp::allgather(void *sendbuf,int sendcnt, MPI_Dataty displs = static_cast(xbt_malloc(sizeof (int) * leader_comm_size)); recvcnts = static_cast(xbt_malloc(sizeof (int) * leader_comm_size)); - if (!displs || !recvcnts) { - return MPI_ERR_OTHER; + if (not displs || not recvcnts) { + return MPI_ERR_OTHER; } recvcnts[0] = node_sizes[0] * recvcnt; displs[0] = 0;