checkpoint/restart

Syntax:

model.checkpoint filename

model.restart filename

These commands dump the contents of the model's variables into a file, and correspondingly reload the model's state variables from the file, in order to implement checkpoint-restart for a batch, or long running environment. These commands are defined in the TCL_obj_t class, and can be overridden if desired.

By setting the variable model.xdr_check to 1 (default value is zero), the checkpoint is written out using XDR routines, so the checkpoint file can be restarted on a computer with a different processor.