Skip to content
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

Restart at eor #31

Open
wants to merge 6 commits into
base: dev/unified
Choose a base branch
from
Open

Conversation

jedwards4b
Copy link

@jedwards4b jedwards4b commented Oct 24, 2024

Pull Request Summary

Adds support for cesm write_restart_at_endofrun

Description

Denise Worthen may want to review. The stop and restart alarm initialization order needs to be reversed this is in support of setting a restart alarm based on the stop time. A new function get_minimum_time is needed in wav_shr_mod to correct timestamp errors when using _OPTION=nsteps.

Issue(s) addressed

Commit Message

The CESM options REST_OPTION=nsteps, STOP_OPTION=nsteps and HIST_OPTION=nsteps were not properly set by WW3. The component model needs to know the minimum model coupling time in order to correctly set this option.

Check list

Testing

  • How were these changes tested?
  • Are the changes covered by regression tests? (If not, why? Do new tests need to be added?)
  • Have the matrix regression tests been run (if yes, please note HPC and compiler)?
  • Please indicate the expected changes in the regression test output, (Note the list of known non-identical tests.)
  • Please provide the summary output of matrix.comp (matrix.Diff.txt, matrixCompFull.txt and matrixCompSummary.txt):

Copy link

@mvertens mvertens left a comment

Choose a reason for hiding this comment

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

I think this looks okay - except for asking why the get_min_timestep is in wave specfic code when it could be in the general share code?

update_nextalarm = .true.
! call ESMF_ClockGet(clock, TimeStep=AlarmInterval, rc=rc)

Choose a reason for hiding this comment

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

Why keep the comment?

Copy link
Author

Choose a reason for hiding this comment

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

removed

character(len=CS) :: cvalue
integer :: comp_dt ! coupling interval of component
integer, parameter :: ncomps = 8
character(len=3),parameter :: compname(ncomps) = (/"atm", "lnd", "ice", "ocn","glc","rof", "wav", "esp"/)

Choose a reason for hiding this comment

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

Why is this routine in wav share code and not in the general share code? I thought there was actually a routine now in share that could deal with this.

Copy link
Author

Choose a reason for hiding this comment

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

removed

Copy link
Member

@alperaltuntas alperaltuntas left a comment

Choose a reason for hiding this comment

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

Other than @mvertens's comments, lgtm.

@jedwards4b
Copy link
Author

I have addressed her comment, and tested the change. I will push it back now.

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