Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Make S4u dirty termination better looking
authorFabien Chaix <chaix@ics.forth.gr>
Tue, 17 May 2022 12:12:59 +0000 (15:12 +0300)
committerFabien Chaix <chaix@ics.forth.gr>
Tue, 17 May 2022 18:26:40 +0000 (21:26 +0300)
src/kernel/EngineImpl.cpp

index 81a0bf7..4217481 100644 (file)
@@ -284,7 +284,7 @@ void EngineImpl::shutdown()
   XBT_DEBUG("EngineImpl::shutdown() called. Simulation's over.");
 #if HAVE_SMPI
   if (not instance_->actor_list_.empty()) {
-    if (smpi_process()->initialized()) {
+    if (smpi_process() && smpi_process()->initialized()) {
       xbt_die("Process exited without calling MPI_Finalize - Killing simulation");
     } else {
       XBT_WARN("Process called exit when leaving - Skipping cleanups");