Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
[SMPI] Elaborated on comment
authorChristian Heinrich <franz-christian.heinrich@inria.fr>
Fri, 3 Nov 2017 13:18:39 +0000 (14:18 +0100)
committerChristian Heinrich <franz-christian.heinrich@inria.fr>
Fri, 3 Nov 2017 15:57:14 +0000 (16:57 +0100)
src/smpi/internals/smpi_process.cpp

index 7e5fc12..fe40ac6 100644 (file)
@@ -70,7 +70,7 @@ void Process::set_data(int index, int* argc, char*** argv)
     char* instance_id = (*argv)[1];
     comm_world_         = smpi_deployment_comm_world(instance_id);
     msg_bar_t bar = smpi_deployment_finalization_barrier(instance_id);
-    if (bar!=nullptr) // don't overwrite the default one
+    if (bar != nullptr) // don't overwrite the current one if the instance has none
       finalization_barrier_ = bar;
     instance_id_ = instance_id;
     index_ = index;