12 | | To avoid this problem '''palmrun''' offers the possibility of so-called '''restart runs'''. During the model run PALM continuously examines how much time is left for the execution of the job. If the run is not completed and finished shortly before expiration of this time, the model stops and writes the values of (nearly) all model variables (especially the 3d-prognostic quantities) in binary form to a file (local name [../iofiles#BINOUT BINOUT]). After copying the output files requested by the user, '''palmrun''' automatically starts a restart run. For this purpose a new '''palmrun''' call is set off automatically on the local computer of the user; '''palmrun''' thus calls itself. The options with this call correspond to a large extent to those which the user had selected with his initial call of '''palmrun'''. The model restarts and this time at the beginning it reads in the binary data written before and continues the run with them. If in this job the CPU time is not sufficient either, in order to terminate the run, at the end of the job another restart run is started, etc., until the time which shall be simulated by the model, is reached. Thus a set of restart runs can develop - a so-called job chain. The first run of this chain (model start at t=0) is called '''initial run'''.\\\\ |
13 | | Working with restart runs and their generation through '''palmrun''' requires certain entries in the palmrun-configuration file and in the parameter file, which are described and explained in the following. The configuration file should contain the following entries: |
| 12 | '''Restart runs''' are the method to circumvent these job class restrictions. During the time stepping, PALM is able to continuously check how much time is left for the execution of the job. If the run can not be completed and finished before expiration of this time, the PALM stops and outputs (nearly) all model variables (especially the 3d-prognostic quantities) in binary format to a file (or folder) with local name [../iofiles#BINOUT BINOUT]). After the local output files have been saved, '''palmrun''' automatically generates a restart run. For this purpose a new '''palmrun''' call is automatically initiated, i.e. '''palmrun''' recursively calls itself. The '''palmrun''' options of this call correspond to those of the initial call. PALM restarts and this time, at the beginning, it reads the binary data that have been written by the previous run, and continues the run based on this final state of the previous run. If the simulation still cannot be finished, another restart run is generated, etc., until the time to be simulated is reached (this is the one set via parameter {{{end_time}}}). This way a whole set of restart runs may be generated - a so-called job chain. |
| 13 | |
| 14 | Restart runs require certain entries in the file-connection file (see [source:palm/trunk/SCRIPTS/.palm.iofiles .palm.iofiles], and its [wiki:doc/app/palm_iofiles description]) and in the parameter file, which will be described and explained now. |
| 15 | |
| 16 | The following entries are important and are already contained in the default file-connection file: |