Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Prefer nullptr and bool literals.
[simgrid.git] / src / smpi / colls / allgatherv / allgatherv-ompi-neighborexchange.cpp
index 38c47df..bf7b051 100644 (file)
@@ -82,8 +82,7 @@ allgatherv__ompi_neighborexchange(const void *sbuf, int scount,
     int i, even_rank;
     int err = 0;
     ptrdiff_t slb, rlb, sext, rext;
-    char *tmpsend = NULL, *tmprecv = NULL;
-
+    char *tmpsend = nullptr, *tmprecv = nullptr;
 
     size = comm->size();
     rank = comm->rank();
@@ -141,7 +140,7 @@ allgatherv__ompi_neighborexchange(const void *sbuf, int scount,
        - Rest of the steps:
        update recv_data_from according to offset, and
        exchange two blocks with appropriate neighbor.
-       the send location becomes previous receve location.
+       the send location becomes previous receive location.
        Note, we need to create indexed datatype to send and receive these
        blocks properly.
     */