From b41232348bc93103a700562e6d9c065f7fd2c6fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Franz=20P=C3=B6schel?= Date: Thu, 6 Jun 2024 17:55:57 +0200 Subject: [PATCH] Workaround for force-flushing in parallel --- mala/common/physical_data.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/mala/common/physical_data.py b/mala/common/physical_data.py index e756e96d1..7ec85623d 100644 --- a/mala/common/physical_data.py +++ b/mala/common/physical_data.py @@ -642,6 +642,11 @@ def write_to_openpmd_iteration( # Third loop: Extra flushes to harmonize ranks for _ in range(extra_flushes): + # This following line is a workaround for issue + # https://github.com/openPMD/openPMD-api/issues/1616 + # Fixed in openPMD-api 0.16 by + # https://github.com/openPMD/openPMD-api/pull/1619 + iteration.dt = iteration.dt iteration.series_flush() iteration.close(flush=True)