From ba2edbf3d36b8fe717047968ddfcfc25a2ffa8bc Mon Sep 17 00:00:00 2001 From: nmannall Date: Fri, 12 Jul 2024 16:32:02 +0100 Subject: [PATCH] Turn off progress bars for non-rank 0 processes --- gprMax/config.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/gprMax/config.py b/gprMax/config.py index 648267a4..fed9d106 100644 --- a/gprMax/config.py +++ b/gprMax/config.py @@ -256,6 +256,11 @@ class SimulationConfig: ), } + if self.mpi and self.general["progressbars"]: + from mpi4py import MPI + + self.general["progressbars"] = MPI.COMM_WORLD.rank == 0 + # Store information about host machine self.hostinfo = get_host_info()