Turn off progress bars for non-rank 0 processes

这个提交包含在:
nmannall
2024-07-12 16:32:02 +01:00
父节点 8467ee5dfa
当前提交 ba2edbf3d3

查看文件

@@ -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 # Store information about host machine
self.hostinfo = get_host_info() self.hostinfo = get_host_info()