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

FMS2_IO: correcting restart reads in remap_restarts #367

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

laurenchilutti
Copy link
Contributor

Description

The reading of restarts in the fv_io.F90 remap_restarts subroutine was mistakenly using read_data (fms2_io) rather than read_restart (fms2_io). This led to the issues seen in issue #204. This PR corrects this issue.

Fixes #204

How Has This Been Tested?

Tested on Gaea with regression tests

Checklist:

Please check all whether they apply or not

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • Any dependent changes have been merged and published in downstream modules

@@ -253,10 +253,6 @@ subroutine fv_restart(fv_domain, Atm, dt_atmos, seconds, days, cold_start, grid_
!This call still appears to be necessary to get isd, etc. correct
!call switch_current_Atm(Atm(n)) !TODO should NOT be necessary now that we manually set isd, etc.

!--- call fv_io_register_restart to register restart field to be written out in fv_io_write_restart
Copy link
Contributor

Choose a reason for hiding this comment

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

Much appreciated clean-up.

Copy link
Contributor

@bensonr bensonr left a comment

Choose a reason for hiding this comment

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

Minor question regarding existence flag for variables.

tools/fv_io.F90 Outdated Show resolved Hide resolved
tools/fv_io.F90 Outdated Show resolved Hide resolved
Copy link
Contributor

@bensonr bensonr left a comment

Choose a reason for hiding this comment

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

lgtm. Is there a test case for this?

@laurenchilutti
Copy link
Contributor Author

@bensonr no I do not have a test case for this

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.

Vertical remapping on restart distorts phis field
3 participants