Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[action replay] fix allgather optional parameter parsing
authorLucas Mello Schnorr <schnorr@inf.ufrgs.br>
Tue, 19 Jan 2016 10:54:34 +0000 (08:54 -0200)
committerLucas Mello Schnorr <schnorr@inf.ufrgs.br>
Tue, 19 Jan 2016 10:54:34 +0000 (08:54 -0200)
src/smpi/smpi_replay.c

index 1f2d9a1..3c3c922 100644 (file)
@@ -884,9 +884,9 @@ static void action_allgather(const char *const *action) {
 
   MPI_Datatype MPI_CURRENT_TYPE2;
 
-  if(action[4]) {
-    MPI_CURRENT_TYPE = decode_datatype(action[3]);
-    MPI_CURRENT_TYPE2 = decode_datatype(action[4]);
+  if(action[4] && action[5]) {
+    MPI_CURRENT_TYPE = decode_datatype(action[4]);
+    MPI_CURRENT_TYPE2 = decode_datatype(action[5]);
   } else {
     MPI_CURRENT_TYPE = MPI_DEFAULT_TYPE;
     MPI_CURRENT_TYPE2 = MPI_DEFAULT_TYPE;