forked from mom-ocean/MOM6
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
parallal any/all, parallel MOM_file_parser fix
A fix to opening an existing file in MOM_file_parser was added. If an open file is re-opened, then the root PE will detect this and `return`, but the others will proceed into `populate_param_data` and get stuck in a broadcast waiting for root. We fix this by gathering the logical test result over PEs as a global any() function. Leading to change #2... `any_across_PEs` and `all_across_PEs` have been added to MOM_coms as any/all implementations over PEs (i.e. MPI ranks). Since legacy FMS does not support logical collectives, we convert to integers and use min/max collectives as an equivalent test.
- Loading branch information
1 parent
b2c1e2d
commit 8c5147b
Showing
2 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters