From a7a868b6668569678ed02e55def13fc185537173 Mon Sep 17 00:00:00 2001 From: John Stilley <1831479+john-science@users.noreply.github.com> Date: Fri, 14 Jun 2024 15:23:01 -0700 Subject: [PATCH] Fixing issue with _finalizeInteract in serial jobs (#1730) --- armi/operators/operatorMPI.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/armi/operators/operatorMPI.py b/armi/operators/operatorMPI.py index b00404a54..2f54c75e7 100644 --- a/armi/operators/operatorMPI.py +++ b/armi/operators/operatorMPI.py @@ -214,8 +214,9 @@ def _finalizeInteract(self): This is only called on the root processor. Worker processors will know what to do with the "reset" broadcast. """ - context.MPI_COMM.bcast("reset", root=0) - runLog.extra("Workers have been reset.") + if context.MPI_SIZE > 1: + context.MPI_COMM.bcast("reset", root=0) + runLog.extra("Workers have been reset.") def _resetWorker(self): """