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)