Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

I cannot save monthly restarts

Hi all,I am trying to run a long simulation (100yr) in 2000_CAM5_CLM40%SP_CICE_POP2_RTM_SGLC_SWAV configuration and 1.9x2.5_gx1v6 resolution. The key point of this simulation is to save the restart files every month, and not only at the end of the run. I have tried two things: CASE 1: to resubmit the simulation:./xmlchange -file env_run.xml -id STOP_OPTION -val nmonths
./xmlchange -file env_run.xml -id STOP_N -val 1
./xmlchange -file env_run.xml -id REST_OPTION -val nmonths
./xmlchange -file env_run.xml -id REST_N -val 1
./xmlchange -file env_run.xml -id DOUT_S_SAVE_INT_REST_FILES -val TRUE
./xmlchange -file env_run.xml -id RESUBMIT -val 1199

 CASE 2: to perform a single simulation:./xmlchange -file env_run.xml -id STOP_OPTION -val nmonths
./xmlchange -file env_run.xml -id STOP_N -val 2
./xmlchange -file env_run.xml -id REST_OPTION -val nmonths
./xmlchange -file env_run.xml -id REST_N -val 1
./xmlchange -file env_run.xml -id DOUT_S_SAVE_INT_REST_FILES -val TRUE
./xmlchange -file env_run.xml -id RESUBMIT -val 0

In case 1, the simulation runs for 1 month, but it is not resubmitted, and so I only have the 0001-02-01-00000/ subfolder in the restart folder.In case 2, the simulation successfully runs for 2 months, but the restart files are only saved at the end of run, and so I only have the 0001-03-01-00000/ subfolder in the restart folder.I attach the env_run.xml files for both cases. Am I doing something wrong?Thank you so much.Joan Ballester
 

aliceb

Member
The CONTINUE_RUN XML variable must be set to TRUE in order for the RESUBMIT option to work. Please try settingCONTINUE_RUN=TRUE in the case1 env_run.xml and see if this fixes the problem.
 

jedwards

CSEG and Liaisons
Staff member
It's in the location that restarts are stored.   Only restarts produced at the end of the run are in the directory rest/0001-02-01-00000/but they are also in directories COMP/rest/   for each component along with the intermitent restart files that you saved.  
 
What did you mean by directories COMP/rest/? I only know two locations with restart files: /glade/scratch/username/archive/casename/rest/ and /glade/scratch/username/casename/run. Where are the other locations for restart files? 
 

jedwards

CSEG and Liaisons
Staff member
Here are all of the restart paths for a case named foo:Interum restart files always go to the component rest directories such as atm/rest below...
/glade/scratch/jedwards/archive/foo/rest/glade/scratch/jedwards/archive/foo/atm/rest/glade/scratch/jedwards/archive/foo/lnd/rest/glade/scratch/jedwards/archive/foo/rof/rest/glade/scratch/jedwards/archive/foo/ice/rest/glade/scratch/jedwards/archive/foo/ocn/rest/glade/scratch/jedwards/archive/foo/glc/rest/glade/scratch/jedwards/archive/foo/wav/rest/glade/scratch/jedwards/archive/foo/dart/rest /glade/scratch/jedwards/archive/foo/cpl/rest
 
I see what you mean! The monthly restart files were saved in ~foo/COMP/rest instead of ~/foo/rest. What is the differece of the restart files between /glade/scratch/jedwards/archive/foo/rest and /glade/scratch/jedwards/archive/foo/COMP/rest? I normally copy the entire restart file folder udner ~/foo/rest into my new case and continue running it. In this case how shall manage the restart files in different component directories? 
 
Top