Skip to content

Commit

Permalink
Workaround for force-flushing in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
franzpoeschel committed Jun 6, 2024
1 parent 64fe38b commit b412323
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 b412323

Please sign in to comment.