Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SIS2: Revise SIS2 restart capability #144

Merged
merged 3 commits into from
Apr 26, 2021

Conversation

Hallberg-NOAA
Copy link
Member

This PR contains a small handful of commits that revise the SIS2 restart
capability to read and write without using any FMS routines directly, which
enables the migration to use the new FMS2 I/O interfaces while still maintaining
the ability to run with the traditional FMS I/O interfaces. All solutions are
bitwise identical when used with either of the MOM6 config_src/infra directories
(although there are some changes in the output file metadata), and the SIS2 runs
in MOM6-examples with the new restart files reproduce answers when either I/O
via the root PE or parallel I/O are used.

This SIS2 PR requires the use of MOM6 code with the changes in https://github.com/NOAA-GFDL/MOM6/pull/1373 .

The commits in this PR include:

  • 0b80b63 Corrected call to open_file in open_restart_units
  • 71edd8c Merge branch 'dev/gfdl' into FMS2_restarts
  • 621219b +Revised SIS_restart to avoid direct calls to FMS

  Extensively revised SIS_restart.F90 to read and write restart files using the
MOM_io routines and avoiding the direct use of any FMS routines, which enables
the migration to use the new FMS2 I/O interfaces while still maintaining the
ability to run with the traditional FMS I/O interfaces.  All solutions are
bitwise identical when used with either of the MOM6 config_src/infra directories
(although there are some changes in the output file metadata), and the SIS2 runs
in MOM6-examples with the new restart files reproduce answers when either I/O
via the root PE or parallel I/O are used.  The interfaces that are used from
outside the SIS_restart module are unchanged, although there are some minor
changes to internal interfaces.
  Corrected the arguments in a call to open_file in open_restart_units when the
restart files are decomposed using the IO-layout.  All answers are bitwise
identical, but this fixes an error later on if this unit handle is used to read
from such a set of decomposed restart files.
@marshallward
Copy link
Member

This has passed my local (non-restart) regression as well as a proxy restart test thrown together, based on OM4_025:

  • One 12h run
  • Two 6h runs using input_filename as n and r
  • Two 6h runs using input_filename as F.

This is probably not sufficient for restart testing but should eventually be revealed in the Gaea regression testing.

@marshallward marshallward merged commit 32a6b14 into NOAA-GFDL:dev/gfdl Apr 26, 2021
@marshallward
Copy link
Member

marshallward commented Apr 26, 2021

Gaea regression test (post-merge): https://gitlab.gfdl.noaa.gov/ogrp/MOM6/-/pipelines/12546 ✔️

@Hallberg-NOAA Hallberg-NOAA deleted the FMS2_restarts branch August 26, 2022 20:01
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