You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Until now, the config option 'restart' has had two possible values:
* restart = 0 if not a restart (i.e., read in a CF input file and initialize the ice state)
* restart = 1 if a restart (i.e., read in a CF restart file that includes the full ice state)
This commit adds a new option, restart = 2, called a 'hybrid restart' because of its
similarity to a CESM hybrid run. We now refer to option 1 as a 'standard restart'.
A hybrid restart works as follows:
- The run is initialized from a file in the [CF input] section, as for restart = 0.
However, this file has 'restart' or '.r.' in its name and includes the full ice state
as needed for exact restart. Typically, it is the final restart time slice from a spin-up.
- The initial time (model%numerics%time) is set to 'tstart' as specified in the config file.
This differs from a standard restart, which takes its initial time from the restart file.
- The initial tstep_count = 0.
This differs from a standard restart, which takes tstep_count from the restart file.
For glaciers, we can use the hybrid restart option for commitment runs and other
forward runs starting from a spun-up state. For instance, say we want to do a 2000-year
spin-up followed by a forward run from 2003–2100. The workflow is as follows:
- Do the spin-up and write a final restart file.
- Set up a directory for the forward run with the required input and forcing files,
including the restart file from the spin-up.
- In the config file:
* Set tstart = 2003, tend = 2100., and restart = 2.
* In the [CF input] section, set 'name' to the name of the restart file from the spin-up.
This should be different from the name of the [CF restart] file for the forward run.
E.g., one file could be spinup.restart.nc, and the other could be forward.restart.nc.
* Change other options changes as needed, e.g. change the inversion options.
- Launch the forward run.
It is no longer necessary to modify the model time or tstep_count by hand in the restart file
from the spin-up. Also, it is not necessary to use the same name for (1) the restart file
from the spin-up and (2) the restart file for the forward run.
If the [CF output] file for the forward run is configured with 'write_init = .true.',
then this output file will include the ice state at the start of the forward run.
For a standard restart, CISM does not write to the output file at the start of the forward run.
Testing the new restart option, I confirmed that a hybrid restart is exact, as expected,
apart from the new values of the model time and tstep_count.
I also confirmed that the standard restart (restart = 1) works as before.
0 commit comments