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

Handle same file error #2921

Open
wants to merge 7 commits into
base: b4b-dev
Choose a base branch
from

Conversation

jedwards4b
Copy link
Contributor

@jedwards4b jedwards4b commented Jan 2, 2025

Description of changes

In some cases of the ssp test the file to copy already exists (when run twice for example)
this leads to an error in shutil.copy. Use a try except clause to avoid this error.

Specific notes

This fix may require ESMCI/cime#4727

Contributors other than yourself, if any:

CTSM Issues Fixed:
Fixes #2913
Fixes #2920

Are answers expected to change (and if so in what way)? NO

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

Does this create a need to change or add documentation? Did you do so?

Testing performed, if any: SSP_Ld4.f09_g17.I1850Clm50BgcCrop.derecho_intel.clm-ciso_rtmColdSSP

@ekluzek ekluzek self-assigned this Jan 14, 2025
@ekluzek ekluzek added enhancement new capability or improved behavior of existing capability bfb bit-for-bit labels Jan 14, 2025
@ekluzek ekluzek added this to the cesm3_0_beta06 milestone Jan 14, 2025
@ekluzek
Copy link
Collaborator

ekluzek commented Jan 15, 2025

This is working for the SSP tests, but the SSPMATRIX test that's more complex is not. I first thought that the rpointer updates for at least the cpl need the rest_time to get the right file for DRV_RESTART_POINTER. There's some code in system_test_common.py that I could copy to do that. But, then I realized that the rpointer files for these cases, may not need to be copied for these cases as they aren't continue runs. Previously it was copying ALL of the rpointer files with the generic dates that just meant one file per component, but now with timestamps it could be a bunch for each time restarts are written.

Copy the logic from other CIME SystemTests about setting the
driver rpointer file
for branch run types.
(requires setting the file and DRV_RESTART_POINTER xml variable).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bfb bit-for-bit enhancement new capability or improved behavior of existing capability
Projects
Status: In Progress
Development

Successfully merging this pull request may close these issues.

rpointer.cpl bug causes ctsm restart to fail SSP/SSPMATRIX test problems with new case github workflow
2 participants