-
Notifications
You must be signed in to change notification settings - Fork 119
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
Write restart files using the write grid component in UFS #244
Write restart files using the write grid component in UFS #244
Conversation
…es on wrt grid comp
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We use the convention of north and east within FMS when referring to staggered variables. You are already using east and I suggest replacing south with north to keep the conventions the same.
Done. See 83f596d |
driver/fvGFS/fv_ufs_restart_io.F90
Outdated
core_east_var3_names(1) = 'v' | ||
n = 1 | ||
if (.not.atm%flagstruct%hydrostatic) then | ||
if (atm%flagstruct%make_nh) then ! hydrostatic restarts dont have these variables |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure if I understand correctly. But the lines 123-127 look the same as line 129-133, do we need this if statement?
driver/fvGFS/fv_ufs_restart_io.F90
Outdated
n = 1 | ||
if (.not.atm%flagstruct%hydrostatic) then | ||
if (atm%flagstruct%make_nh) then ! hydrostatic restarts dont have these variables | ||
! core_center_var3(n) = 'w'; n=n+1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if I understand this if statement (and comments) . Isn't line 208 said that this is non-hydrostatic? Can we have:
if (.not. atm%flagstruct%make_nh) then
lines 216-220
endif
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I copied the logic from:
https://github.com/NOAA-GFDL/GFDL_atmos_cubed_sphere/blob/dev/emc/tools/fv_io.F90#L301-L315
all tests are done on ufs-community/ufs-weather-model#1633. @bensonr @laurenchilutti can you merge the pr? |
Description
This PR adds new module that enables writing the restart files using the write grid component in UFS. The new module is located in driver/fvGFS/ and is only used by UFS.
Fixes # (issue)
How Has This Been Tested?
Please describe the tests that you ran to verify your changes. Please also note
any relevant details for your test configuration (e.g. compiler, OS). Include
enough information so someone can reproduce your tests.
Checklist:
Please check all whether they apply or not