Skip to content

Fix: Veritical Remapping on restarts#374

Merged
laurenchilutti merged 4 commits into
NOAA-GFDL:dev/emcfrom
laurenchilutti:remap_io_emc
Mar 6, 2025
Merged

Fix: Veritical Remapping on restarts#374
laurenchilutti merged 4 commits into
NOAA-GFDL:dev/emcfrom
laurenchilutti:remap_io_emc

Conversation

@laurenchilutti
Copy link
Copy Markdown
Member

@laurenchilutti laurenchilutti commented Feb 21, 2025

Description

It was reported that "When we restart a simulation with a different vertical grid, the phis field becomes distorted, copying the same section of the field over the whole tile according to the number of processors per tile". We fixed this by using the correct fms2io function for reading restarts.

I am also including two other minor changes:

  1. Adding Contributing Guide (just a new .md file, no impact)
  2. Quad Precision macro change - this was a PR with a minor change to the code that I am just combining with this.

Fixes #204

How Has This Been Tested?

We have tested this with the SHiELD model at GFDL.
Also tested by @rurata

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

* correcting restart reads in remap_restarts to be read in by read_restart and not read_data

* cleanup a few comments in fv_io.  Remove is_optional from the registering of some remap restart fields in fv_io.
Add CONTRIBUTING_GUIDE.md to main branch
Copy link
Copy Markdown
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

Copy link
Copy Markdown
Contributor

@XiaqiongZhou-NOAA XiaqiongZhou-NOAA left a comment

Choose a reason for hiding this comment

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

Nice.

Copy link
Copy Markdown
Contributor

@lharris4 lharris4 left a comment

Choose a reason for hiding this comment

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

One minor typo; otherwise very glad to see this contribution from our community partners.

Comment thread CONTRIBUTING_GUIDE.md Outdated
@jkbk2004
Copy link
Copy Markdown

jkbk2004 commented Mar 5, 2025

tests are done at ufs-community/ufs-weather-model#2487. @bensonr @lharris4 @XiaqiongZhou-NOAA @laurenchilutti Can you go ahead to merge this pr?

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.

5 participants