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

avoid integer overflow by skipping mediator in restart loop #460

Merged
merged 1 commit into from
May 22, 2024

Conversation

jedwards4b
Copy link
Collaborator

Description of changes

This loop in med_phases_restart_mod.F90 was causing integer overflow because the med component should not be included. This was only happening with the nag compiler in debug mode and would not normally be a problem since integer overflows are ignored (except by nag in debug mode) and the resulting values were never used.

Specific notes

Contributors other than yourself, if any:

CMEPS Issues Fixed (include github issue #):

Are changes expected to change answers? (specify if bfb, different at roundoff, more substantial)

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

Testing performed

Please describe the tests along with the target model and machine(s)
If possible, please also added hashes that were used in the testing

@mvertens
Copy link
Collaborator

@JEdwards - what testing was done for this? Can you please run a few tests to demonstrate that this fix does not adversely effect other configurations.

Copy link
Collaborator

@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.

This looks fine. It would be good to add a comment as to why you are ignoring this for the mediator.

slevis-lmwg added a commit to slevis-lmwg/ctsm that referenced this pull request May 17, 2024
@ekluzek
Copy link
Collaborator

ekluzek commented May 20, 2024

We have a long lists of tests that fail in our CTSM PR ESCOMP/CTSM#2539. It would be good to have this come in as a tag so we can show those tests PASS.

What testing needs to be done for this to come in? Maybe the aux_cmeps and aux_clm test lists in a CESM checkout?

@jedwards4b jedwards4b merged commit 6384ff4 into ESCOMP:main May 22, 2024
1 of 2 checks passed
slevis-lmwg added a commit to slevis-lmwg/ctsm that referenced this pull request May 24, 2024
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