Ensure the model clock is advanced consistently for single and multiple NUOPC run phases#489
Ensure the model clock is advanced consistently for single and multiple NUOPC run phases#489rmontuoro wants to merge 40 commits into
Conversation
large scale rain, and convective rain at the end of each coupling step if coupling with chemistry model.
defining zero and one.
in noah/osu land-surface model subdriver.
band layer cloud optical depths (0.55 and 10 mu channels) to prevent floating invalid errors due to uninitialized optical depth arrays.
coupling array at the beginning of each coupling step if coupled with chemistry model.
the NUOPC Realize phase since it breaks coupling with aerosol component.
This reverts commit 735eb9e.
to ensure restarts are properly generated.
|
@theurich @rsdunlapiv May I ask why the advanceCount increases in both the run phase1 and phase2 with run sequence: while it does not in run sequence: Thanks. |
What will happen if we have a third atm phase? Will that require reversing the clock twice, first after phase 1 and then again after phase 2? Something is not correct here, and adding this fix that reverses clock manually seems ad hoc. As far as I can tell we do not advance the model clock in the fv3 cap, which means it should be unnecessary to reverse it manually. |
|
Instead of: |
|
I think we'd need to do where elapsedTime is an ESMF_TimeInterval |
|
Looking at the block of code in |
|
@DusanJovic-NOAA Then we need an alternative way to for the if statement not to write out the restart files at the end of forecast, which is called in atmos_model_end. Otherwise it will be written out twice and delay the whole forecast time. |
Why do we need that if tests? Does the |
|
We need to write restart at the end of the forecast too (so that we can
continue the forecast, for example in a long climate simulation).
Moorthi
…On Tue, Mar 1, 2022 at 8:05 PM Dusan Jovic ***@***.***> wrote:
@DusanJovic-NOAA <https://github.com/DusanJovic-NOAA> Then we need an
alternative way to for the if statement not to write out the restart files
at the end of forecast, which is called in atmos_model_end. Otherwise it
will be written out twice and delay the whole forecast time.
Why do we need that if tests? Does the frestart array contain the end of
the forecast? It should not.
—
Reply to this email directly, view it on GitHub
<#489 (comment)>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALLVRYS52QYZGJH3AYM7DE3U525ENANCNFSM5PJAYBKQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
Dr. Shrinivas Moorthi
Research Meteorologist
Modeling and Data Assimilation Branch
Environmental Modeling Center / National Centers for Environmental
Prediction
5830 University Research Court - (W/NP23), College Park MD 20740 USA
Tel: (301)683-3718
e-mail: ***@***.***
Phone: (301) 683-3718 Fax: (301) 683-3718
|
|
I think we can change it to: if(atm_int_state%Time_atmos /= atm_int_state%Time_end) then |
I think restart files are always written at the end of forecast regardless of what's in the |
|
That is not always true. We write out restart at fh=3 and 6 for gdas 12 hours forecast. |
|
We need to be able to write the restart at certain interval. For example, in the operations we write restart every 24 hours. For long integrations like CFS, we need to write restart every 10 or 15 days so that if the model crashes we don't have to start from 0 hour. |
|
An fix without using the advanceCount is implemented and committed in PR#491. Will close PR. |
Description
Intermediate restarts are generated based on the number of times the model clock is advanced (
na):https://github.com/NOAA-EMC/fv3atm/blob/bc562d79211bb643e9b1ee9aa9831895d103efba/module_fcst_grid_comp.F90#L1021-L1024
https://github.com/NOAA-EMC/fv3atm/blob/bc562d79211bb643e9b1ee9aa9831895d103efba/module_fcst_grid_comp.F90#L1036-L1063
This update makes sure
nais consistently computed when using either a single or multiple NUOPC run phases by rewinding the model clock by one time step after NUOPC run phase 1.Issue(s) addressed
Testing
The changes were tested on Orion/Intel. Regression test logs from Orion are provided.
Dependencies
None