X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0198d4f8e942b276c9b53f52b421bba99c93ed0a..8ec4cd863b5356da6a1d5f5c6cd7e0b8c84c16be:/src/smpi/smpi_replay.c diff --git a/src/smpi/smpi_replay.c b/src/smpi/smpi_replay.c index d52ec60c41..da9263e641 100644 --- a/src/smpi/smpi_replay.c +++ b/src/smpi/smpi_replay.c @@ -632,13 +632,12 @@ static void action_allgatherv(const char *const *action) { /* The structure of the allgatherv action for the rank 0 (total 4 processes) is the following: -0 allGatherV 275427 275427 275427 275427 204020 0 275427 550854 826281 +0 allGatherV 275427 275427 275427 275427 204020 where: 1) 275427 is the sendcount 2) The next four elements declare the recvcounts array - 3) The next four values declare the disps array - 4) No more values mean that the datatype for sent and receive buffer + 3) No more values mean that the datatype for sent and receive buffer is the default one, see decode_datatype(). */ @@ -653,9 +652,9 @@ static void action_allgatherv(const char *const *action) { int recv_sum=0; MPI_Datatype MPI_CURRENT_TYPE2; - if(action[3+2*comm_size]) { - MPI_CURRENT_TYPE = decode_datatype(action[3+2*comm_size]); - MPI_CURRENT_TYPE2 = decode_datatype(action[4+2*comm_size]); + if(action[3+comm_size]) { + MPI_CURRENT_TYPE = decode_datatype(action[3+comm_size]); + MPI_CURRENT_TYPE2 = decode_datatype(action[4+comm_size]); } else { MPI_CURRENT_TYPE = MPI_DEFAULT_TYPE; MPI_CURRENT_TYPE2 = MPI_DEFAULT_TYPE; @@ -665,7 +664,6 @@ static void action_allgatherv(const char *const *action) { for(i=0;i