-
Notifications
You must be signed in to change notification settings - Fork 570
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
Allow for user-configured naming conventions of restart files #674
Comments
Thanks @JessicaMeixner-NOAA for posting this! CESM naming convention of restart file names is as follows:
where, An example ww3 restart file name from a CESM case that I recently ran:
where CESM has a unique naming convention for case names as well. As in the above example, we tend to have quite long $CASE names: Within other CESM components, we achieve this naming convention in the respective model drivers (caps) where we can easily obtain the case name and date strings from the CESM driver at runtime. For instance, in MOM6 nuopc cap, we set the restart filename as follows:
where One final note: In addition to the actual restart files, we also write out a text file called rpointer file for each component that contains the name of the restart file to be read in when a case gets restarted. Currently, I am mentioning @mvertens in case I missed out anything. |
@alperaltuntas thank you so much for your response! This issue will not change the format of the file for now, it seems likely we can figure out something that will add the additional flexibility for the naming of the files via input options. |
@alperaltuntas I know for now you are not using multiple WW3 grids for now, but if you did how would you account for that in your naming convention? Right now it's essentially in the extension .ww3 or .{grid_name} is how we handle the different multiple grids, but if/when we move to netcdf file does that become .ww3.nc or .{grid_name}.nc ? Would that be an issue for you if it's .ww3.nc as the "ending"? Also a note: We need to consider what the name of the restart file that is used for starting up. Is that also going to have flexibility? |
@JessicaMeixner-NOAA we actually use multiple WW3 grids depending on which ocean model we couple with (POP2 or MOM6) and depending on whether CICE coupling is on. In the restart filenames, we include the case name, which includes the grid alias. Below is an example restart file name:
In the above file name, So when we move to netcdf, the above file name would simply be:
To specify the name of the restart file that is used for starting up, CESM components read in a text file called |
@alperaltuntas do you use multiple girds in one simulation? |
Oh, right, we don't use multiple grids in one simulation. |
I have a feature branch (https://github.com/DeniseWorthen/WW3/tree/feature/useropts) which attempts to implement this feature. I've tested this is ufs and it seems to be working there but it will need more complete testing to uncover any issues on the CESM side. What I've done is added two logical flags (user_restname, user_histname) to indicate that user-specific names are requested. The string to use to construct the filenames are then in user_restfname, user_histfname. I've also defined a user_timestring, which allows for a custom timestamp style. The filenames should revert to the default style if a custom user name is not requested. |
@DeniseWorthen I'll be testing your branch and extending it so that a user can set this option via the inp/nml files. I probably wont get to this tomorrow, so it'll likely be when I get back from leave on the 25th. |
Is this still happening? I am wondering if this is close enough to completion that it can be quickly knocked out |
@arunchawla-NOAA the remaining task here is to put this in a config file that's a WW3 specific input in addition to the UFS configuration files. At this point it's on me to finish this and bring this to develop. I will work on this after I finish HAFS things and we get any scotch issues I need to help with. |
ok thanks |
Is your feature request related to a problem? Please describe.
CESM and other systems have requirements for specific naming conventions of restart files.
Describe the solution you'd like
Configure the name of restart files via optional namelist/input options.
Additional context
Need to know what CESM (@alperaltuntas) and other systems requirements are.
Related to #219
The text was updated successfully, but these errors were encountered: