Skip to content

add support for REST_OPTION end and always write a restart at end of …#111

Merged
jedwards4b merged 3 commits into
ESCOMP:masterfrom
jedwards4b:add_rest_option_end
Aug 6, 2021
Merged

add support for REST_OPTION end and always write a restart at end of …#111
jedwards4b merged 3 commits into
ESCOMP:masterfrom
jedwards4b:add_rest_option_end

Conversation

@jedwards4b
Copy link
Copy Markdown
Contributor

@jedwards4b jedwards4b commented Aug 5, 2021

…run unless restart is none or never

Description of changes

Adds support for REST_OPTION=end and always writes restarts at end of run unless REST_OPTION is none or never.

Specific notes

Contributors other than yourself, if any:

CMEPS Issues Fixed (include github issue #):

Are there dependencies on other component PRs

Are changes expected to change answers?

  • bit for bit
  • different at roundoff level
  • more substantial

Any User Interface Changes (namelist or namelist defaults changes)?

  • Yes
  • No

Testing performed:

  • (required) aux_cdeps
    • machines and compilers: cheyenne intel, all pass except NLDIFF due to atmocn flux change
    • details (e.g. failed tests): generated new baselines: aug0621
  • (optional) CESM prealpha test
    • machines and compilers
    • details (e.g. failed tests):

Hashes used for testing:

@jedwards4b jedwards4b requested a review from mvertens August 5, 2021 19:16
@jedwards4b jedwards4b self-assigned this Aug 5, 2021
Comment thread datm/atm_comp_nuopc.F90 Outdated
type(ESMF_TimeInterval) :: timeStep
real(r8) :: nextsw_cday
logical :: restart_write ! restart alarm is ringing
logical :: rstwr ! restart alarm is ringing
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Why change the name to a shorter name? What was wrong with restart_write?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

nothing, it was a cut and paste change. I've updated to restart_write.

Comment thread datm/atm_comp_nuopc.F90 Outdated

! determine if will write restart
call ESMF_ClockGetAlarm(clock, alarmname='alarm_restart', alarm=alarm, rc=rc)
rstwr = dshr_check_restart_alarm(clock, rc=rc)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Great idea for code reuse! I'm sorry I did not think of this!

Comment thread dshr/dshr_mod.F90

end subroutine dshr_pio_init

logical function dshr_check_restart_alarm(clock, rc)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Could you please add a line or two of comments about our logic here. I think this would be helpful for future reference.

Comment thread dshr/dshr_mod.F90 Outdated
Comment thread dshr/dshr_mod.F90
@jedwards4b jedwards4b merged commit 6ec3acf into ESCOMP:master Aug 6, 2021
@jedwards4b jedwards4b deleted the add_rest_option_end branch August 6, 2021 21:21
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.

3 participants