-
Notifications
You must be signed in to change notification settings - Fork 132
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
Enable triggering restart writes at any forecast time ("restart_fh") via UFS configuration as for other components #1001
base: main
Are you sure you want to change the base?
Conversation
…restart_fh") via UFS configuration as for other components Part of ufs-community/ufs-weather-model#2348
@dabail10, @anton-seaice, please have a quick look and provide feedback/approve as needed. |
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.
No concerns from me.
Where is shr_is_restart_fh_mod
defined ? Is it more adaptable to add an #ifdef UFSCOUPLED
instead of relying on #ifndef CESMCOUPLED
having this meaning?
Thanks @anton-seaice. Maybe the main goal is not to have many of these #ifdefs...certainly open to being more adaptable if it helps.
|
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.
This looks fine, but I think this is a bit of an issue where we have all of these different methods of reading / writing restarts depending on the coupled system.
Two comments here, just my .02.... The The issue of restart writing frequency is probably just going to be fundamentally different in a weather-forecasting setting than in a climate/research setting. The more flexible solution is to have this capability defined by ESMF (through config), but for now that capability doesn't exist. |
For detailed information about submitting Pull Requests (PRs) to the CICE-Consortium,
please refer to: https://github.com/CICE-Consortium/About-Us/wiki/Resource-Index#information-for-developers
PR checklist
Enable writing forecast hour defined restarts ("restart_fh") as delimited floating point forecast hours in UFS model_configure component attributes
Nick Szapiro, Denise Worthen, & Jun Wang
Testing in UFS with cpld_control_gfsv17 confirms that restarts are bit-for-bit when (1) sharing common times with RESTART_N and (2) instead of RESTART_N. This feature is exercised in ufs-weather-model regression testing (see Flexible restart write times (restart_fh) for med, ocn, ice, wav ufs-community/ufs-weather-model#2419)
This PR enables writing forecast hour defined restarts ("restart_fh") in the same way as space-delimited floating point forecast hours in model_configure attributes, like
restart_fh: 0.25 2.5 6 17 24
. The implementation builds on current restart_fh in MOM6 for CMEPS, MOM6, CICE, and WW3 to have option of forecast hour restarts in addition to existing functionality. Restart writes are triggered when input restart_fh forecast hours are evenly divisible by a component's timestep (internally compared in units of integer seconds) and skipped otherwise. These restarts may be particularly helpful for data assimilation.Enabling the functionality depends on UFS shared code (hence the #ifndef blocks), but this only depends on ESMF and could be adapted and shared with CESM as well, if CESM would like:
https://github.com/ufs-community/ufs-weather-model/blob/develop/CDEPS-interface/ufs/cdeps_share/shr_is_restart_fh_mod.F90