From: Lucas Mello Schnorr Date: Tue, 19 Jan 2016 10:37:44 +0000 (-0200) Subject: [action replay] independent parsing for two optional parameters X-Git-Tag: v3_13~1207^2~6 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/5dc4d8d96bbe1c1d5772aab22f911781f447eb66 [action replay] independent parsing for two optional parameters --- diff --git a/src/smpi/smpi_replay.c b/src/smpi/smpi_replay.c index 27b9a9b9a7..f449bdeb50 100644 --- a/src/smpi/smpi_replay.c +++ b/src/smpi/smpi_replay.c @@ -646,10 +646,15 @@ static void action_allToAll(const char *const *action) { if(action[4]) { MPI_CURRENT_TYPE=decode_datatype(action[4]); + } + else{ + MPI_CURRENT_TYPE=MPI_DEFAULT_TYPE; + } + + if (action[5]){ MPI_CURRENT_TYPE2=decode_datatype(action[5]); } else { - MPI_CURRENT_TYPE=MPI_DEFAULT_TYPE; MPI_CURRENT_TYPE2=MPI_DEFAULT_TYPE; } void *send = smpi_get_tmp_sendbuffer(send_size*comm_size* smpi_datatype_size(MPI_CURRENT_TYPE)); @@ -999,10 +1004,14 @@ static void action_allToAllv(const char *const *action) { recv_buf_size=parse_double(action[3+comm_size]); if(action[4+2*comm_size]) { MPI_CURRENT_TYPE=decode_datatype(action[4+2*comm_size]); + } + else{ + MPI_CURRENT_TYPE=MPI_DEFAULT_TYPE; + } + if(action[5+2*comm_size]){ MPI_CURRENT_TYPE2=decode_datatype(action[5+2*comm_size]); } else { - MPI_CURRENT_TYPE=MPI_DEFAULT_TYPE; MPI_CURRENT_TYPE2=MPI_DEFAULT_TYPE; }