Skip to content

Always create single-threaded files in 1 PE runs#1521

Merged
marshallward merged 2 commits into
mom-ocean:dev/gfdlfrom
Hallberg-NOAA:create_file_1PE_fix
Oct 25, 2021
Merged

Always create single-threaded files in 1 PE runs#1521
marshallward merged 2 commits into
mom-ocean:dev/gfdlfrom
Hallberg-NOAA:create_file_1PE_fix

Conversation

@Hallberg-NOAA
Copy link
Copy Markdown
Collaborator

Modified create_file to always specify that the threading will be for a single
PE to do the writing to a single file if there is only a single ocean PE, to
avoid some incorrect behavior inside of the FMS IO modules. This can fix
restart problems in some single-processor cases with an inconsistent setting of
the optional threading argument, but in all cases that ran correctly before, all
answers are bitwise identical.

  Modified create_file to always specify that the threading will be for a single
PE to do the writing to a single file if there is only a single ocean PE, to
avoid some incorrect behavior inside of the FMS IO modules.  This can fix
restart problems in some single-processor cases with an inconsistent setting of
the optional threading argument, but in all cases that ran correctly before, all
answers are bitwise identical.
@codecov
Copy link
Copy Markdown

codecov Bot commented Oct 13, 2021

Codecov Report

Merging #1521 (bcf8ba0) into dev/gfdl (1700498) will increase coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@            Coverage Diff            @@
##           dev/gfdl    #1521   +/-   ##
=========================================
  Coverage     29.09%   29.09%           
=========================================
  Files           239      239           
  Lines         71567    71568    +1     
=========================================
+ Hits          20824    20825    +1     
  Misses        50743    50743           
Impacted Files Coverage Δ
src/framework/MOM_io.F90 22.77% <100.00%> (+0.08%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1700498...bcf8ba0. Read the comment docs.

Copy link
Copy Markdown
Collaborator

@marshallward marshallward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this is a reasonable change which will help protect against potential threading definition inconsistencies.

@marshallward
Copy link
Copy Markdown
Collaborator

Gaea regression: https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/13913 ✔️

@marshallward marshallward merged commit a2aaad6 into mom-ocean:dev/gfdl Oct 25, 2021
@Hallberg-NOAA Hallberg-NOAA deleted the create_file_1PE_fix branch November 27, 2021 11:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants