Skip to content

Commit d889c5c

Browse files
committed
Sync MPI processes before filesystem ops
`generate_output_path` operates on the filesystem, so it is wise to make sure that all the processes are in sync
1 parent 08ae437 commit d889c5c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/OutputPathGenerator.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ function generate_output_path(
137137
style::OutputPathGeneratorStyle = ActiveLinkStyle(),
138138
)
139139
output_path == "" && error("output_path cannot be empty")
140+
# Let's make sure we are synced before we do any filesystem operation
141+
ClimaComms.barrier(context)
140142
return generate_output_path(style, output_path; context)
141143
end
142144

0 commit comments

Comments
 (0)