Skip to content

Commit

Permalink
Merge pull request #540 from franzpoeschel/fix-parallel-flushing
Browse files Browse the repository at this point in the history
openPMD I/O: fix parallel flushing
  • Loading branch information
RandomDefaultUser authored Jun 7, 2024
2 parents 8f9fbba + b412323 commit a1faeba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mala/common/physical_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit a1faeba

Please sign in to comment.