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

fix the restart tests by using ceil instead of int #4669

Merged
merged 4 commits into from
Aug 29, 2024

Conversation

jedwards4b
Copy link
Contributor

int was rounding down, but this calculation should round up.

Test suite: ERS.f19_g17.A.derecho_intel
Test baseline:
Test namelist changes:
Test status: bit for bit

Fixes #4667

User interface changes?:

Update gh-pages html (Y/N)?:

@jedwards4b jedwards4b requested a review from jgfouca August 28, 2024 21:58
@jedwards4b jedwards4b self-assigned this Aug 28, 2024
@jedwards4b
Copy link
Contributor Author

@jasonb5 we continue to have trouble with black tests failing on files we didn't touch...

@jasonb5
Copy link
Collaborator

jasonb5 commented Aug 29, 2024

@jedwards4b Hadn't pushed the PR that fixes it yet, I'll do that shortly.

@jasonb5
Copy link
Collaborator

jasonb5 commented Aug 29, 2024

@jedwards4b #4670 will fix the pre-commit failure. See the PR description for an explanation.

Copy link
Contributor

@jgfouca jgfouca left a comment

Choose a reason for hiding this comment

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

Did you intend to update the cprnc submodule?

@jedwards4b
Copy link
Contributor Author

No - I'll back that out. Thanks

@jedwards4b jedwards4b merged commit d70af96 into ESMCI:master Aug 29, 2024
7 checks passed
@jedwards4b jedwards4b deleted the systemtest_restart_fix branch August 29, 2024 16:03
@fischer-ncar
Copy link
Contributor

@jedwards4b This PR is causing several prealpha test failures. An example is ERS_Ly7.f09_g17_gris4.T1850Gg.derecho_intel.

Traceback (most recent call last):
  File "/glade/u/home/fischer/code/cesm3_0_alpha03b/cime/CIME/SystemTests/system_tests_common.py", line 351, in run
    self.run_phase()
  File "/glade/u/home/fischer/code/cesm3_0_alpha03b/cime/CIME/SystemTests/ers.py", line 53, in run_phase
    self._ers_first_phase()
  File "/glade/u/home/fischer/code/cesm3_0_alpha03b/cime/CIME/SystemTests/ers.py", line 19, in _ers_first_phase
    self._rest_n = self._set_restart_interval()
  File "/glade/u/home/fischer/code/cesm3_0_alpha03b/cime/CIME/SystemTests/system_tests_common.py", line 179, in _set_restart_interval
    expect(stop_n > 0, "Bad STOP_N: {:d}".format(stop_n))
ValueError: Unknown format code 'd' for object of type 'float'

@jedwards4b
Copy link
Contributor Author

Got it - fix coming.

@jedwards4b
Copy link
Contributor Author

#4671

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.

4 participants