Skip to content

Commit

Permalink
check for ensemble rank before writing to pvd
Browse files Browse the repository at this point in the history
  • Loading branch information
jshipton committed May 1, 2024
1 parent cff27bd commit afb235b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gusto/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ def dump(self, state_fields, t, step, initial_steps=None):
# dump fields
self.write_nc_dump(t)

if output.dump_vtus:
if output.dump_vtus and self.ensemble.ensemble_comm.rank == 0:
# dump fields
self.pvd_dumpfile.write(*self.to_dump)

Expand Down

0 comments on commit afb235b

Please sign in to comment.