Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[action replay] verify both optional parameters in allgatherv
authorLucas Mello Schnorr <schnorr@inf.ufrgs.br>
Tue, 19 Jan 2016 10:54:04 +0000 (08:54 -0200)
committerLucas Mello Schnorr <schnorr@inf.ufrgs.br>
Tue, 19 Jan 2016 10:54:04 +0000 (08:54 -0200)
src/smpi/smpi_replay.c

index e0969ba..1f2d9a1 100644 (file)
@@ -937,7 +937,7 @@ static void action_allgatherv(const char *const *action) {
   int recv_sum=0;  
   MPI_Datatype MPI_CURRENT_TYPE2;
 
-  if(action[3+comm_size]) {
+  if(action[3+comm_size] && action[4+comm_size]) {
     MPI_CURRENT_TYPE = decode_datatype(action[3+comm_size]);
     MPI_CURRENT_TYPE2 = decode_datatype(action[4+comm_size]);
   } else {