-
Notifications
You must be signed in to change notification settings - Fork 318
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
base: b4b-dev
Are you sure you want to change the base?
Handle same file error #2921
Conversation
…ng that rpointer files are the same
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).
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