Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Answer to Martin's feedback
authorFabien Chaix <chaix@ics.forth.gr>
Mon, 28 Feb 2022 22:38:54 +0000 (00:38 +0200)
committerFabien Chaix <chaix@ics.forth.gr>
Mon, 28 Feb 2022 22:38:54 +0000 (00:38 +0200)
src/bindings/python/simgrid_python.cpp
src/kernel/EngineImpl.cpp

index 4da8616..288c0cf 100644 (file)
@@ -219,7 +219,7 @@ PYBIND11_MODULE(simgrid, m)
                   res();
               } catch (const py::error_already_set& ex) {
                 XBT_VERB("Actor killed");
-                simgrid::ForcefulKillException::do_throw(); // Forward that ForcefulKill exception
+                simgrid::ForcefulKillException::do_throw();
                 throw;
               }
             });
@@ -743,7 +743,7 @@ PYBIND11_MODULE(simgrid, m)
                 fun(*args);
               } catch (const py::error_already_set& ex) {
                 XBT_VERB("Actor killed");
-                simgrid::ForcefulKillException::do_throw(); // Forward that ForcefulKill exception
+                simgrid::ForcefulKillException::do_throw();
                 throw;
               }
             });
index b35092d..1e669cb 100644 (file)
@@ -297,7 +297,7 @@ void EngineImpl::shutdown()
   XBT_DEBUG("EngineImpl::shutdown() called. Simulation's over.");
 #if HAVE_SMPI
   if (not instance_->actor_list_.empty()) {
-    if (smpi_process() && smpi_process()->initialized()) {
+    if (smpi_process()->initialized()) {
       xbt_die("Process exited without calling MPI_Finalize - Killing simulation");
     } else {
       XBT_WARN("Process called exit when leaving - Skipping cleanups");