Move instance suffix to correct position in restart file names#366
Conversation
…nd do not re-add it later on
…lename and do not re-add it later on" This reverts commit a749486.
|
This PR is ready for review. @kdraeder, Could you confirm that this PR fixes the restart filename consistency issue. Note that this PR needs to be evaluated in conjunction with the changes from ESCOMP/MOM_interface#261 |
@alperaltuntas What's the preferred (or acceptable) MOM6 way to get this code for testing? |
@kdraeder, I've already tested this thoroughly, so no formal testing is needed on your end. If you could confirm that these changes resolve the issue you reported in ESCOMP/MOM_interface#238 (the part related to the restart file name) using any relevant test of your choice (for example, by rerunning a case where you previously observed the issue), that should be sufficient. |
|
@alperaltuntas I've exported the changes in this PR into the CESM I built a HISTC_CAM70%LT_CLM60%BGC-CROP_CICE_MOM6%MARBL-BIO_MOSART_SGLC_SWAV case, So it seems that my question is "is there a MOM_interface that will work |
|
Since beta03 is quite outdated, I suggest we go ahead and merge these changes now, and include them in the upcoming MOM6-centric alpha tag, cesm3_0_alpha07d. Once that tag is available, you can test both this and other related changes in a more up-to-date CESM context. If you still run into issues at that point, we can iterate further based on that. |
|
That sounds good. |
|
@mnlevy1981 Just checking if you'd like to review this PR and ESCOMP/MOM_interface#261. If not, I'll go ahead and merge them. |
mnlevy1981
left a comment
There was a problem hiding this comment.
If you've verified there's no effect on single-instance cases, I'm okay with these changes
This PR partially addresses ESCOMP/MOM_interface#238 by including the instance number in the component name portion of the restart filenames, rather than appending it to the end of the filename.
This behavior is controlled by a newly added runtime parameter
RESTARTFILE_APPENDIX_PREFIX. If this prefix is provided (and found in the restart file name), the ensemble instance number (appendix) is added right after the first occurrence of the prefix (RESTARTFILE_APPENDIX_PREFIX). If not found, the appendix is added to the end of the file name (as before).