User Tools

Site Tools


start:hype_file_reference:state_save

state_saveyyyymmdd[HHMM].txt

State variables can be saved to a file and later used for starting a model simulation from that same point. This can be useful to shorten the simulation time, e.g to skip repeatedly simulate a warm-up period, or to simulate several forecasts after running the model up to date.

State-files are saved for the dates given by outstatedate in info.txt. The files are written to the resultdir folder. To use a state-file as a starting state instate is set in info.txt. A state-file with the date(time) given by bdate is expected and used as starting state. The starting state file is expected to be found in the modeldir folder. There is one file per time step with saved states: state_saveyyyymmdd[HHMM].txt yyyymmdd[HHMM] is the date(time) of the start of simulation (bdate). For daily time step only the date is used in the file name.

The first row of the state_save-file hold integer codes for what settings were used when creating the file. The settings are checked against the simulation that is started. Most of the settings must be the same for the simulation to start. For instance number of subbasins and classes are checked, as is some model options and time step length. Number of substances simulated (and their internal order) is checked, but it is possible to use a starting state created from a simulation of substances to start a simulation totally without substances. Updating with the AR-method is also possible to turn on or off between simulations using starting states.

start/hype_file_reference/state_save.txt ยท Last modified: 2017/07/05 09:13 by cpers