Vous regardez une version antérieure (v. /display/EDDSDLTEL/Restart+a+simulation) de cette page.

afficher les différences afficher l'historique de la page

« Afficher la version précédente Vous regardez la version actuelle de cette page. (v. 3) afficher la version suivante »

Restart a simulation when having submitted it with 'Chunk_lance'.


To know where the simulation was, Chunk_lance is using a log file called 'chunk_job.log'. The chunk_job itself will check this file to determine which job to execute next. Therefore this log file should not be touched.
However, to rerun part of a simulation one can alter the log file by hand. Just make sure there is never a blank line at the end of the log file 'chunk_job.log' since the chunk_job only checks the very last line of the log file!

If the simulation was stopped (job was killed) or crashed it can often get re-submitted by executing again the command:

    Chunk_lance

Restart a simulation from a previous restart file

Sometimes it happens that part of the restart files gets overwritten before a month is finished or that the restart files are corrupted or one would simply like to rerun of of a simulation. In that case one cannot just relaunch the month with Chunk_lance but has to get the original (uncorrupted) restart files back (from the month previous to the one one wants to rerun) and restart the simulation from there.

When the model job stops for whatever reason, there is an automatic check in Chunk_lance if the restart files are still the original ones or not. If they got already modified the following message will appear in the "chunk_job listing" (!!!) not in the model listing:

   At least one of the restart files got already rewritten
   Therefore the model could not get restarted automatically
   You have to restart your simulation starting from the previous restart files
            ----- ABORT -----
 
If you see this message one cannot simply restart the simulation with Chunk_lance but as said, one need to restart it from the previous restart file - see below.

To restart a simulation one need to :

1) Make sure the restart of the previous month is under ~/MODEL_EXEC_RUN/$TRUE_HOST

2) Make sure the "Scripts-job", ${exp}_S, is in the config directory

3) 'chunk_job.log'

Restart using Chunk_lance

In case a simulation stops and you want to find out which job (scripts, entry or model) crashed, you have have look in the listings directory (~/listings/${TRUE_HOST}). Check which of the following jobs has crashed:

    ${exp}_S     (Scripts)
    ${exp}_M     (Model)

Or you can have a look at the log file "chunk_job.log".

In any case, you can restart your simulation by simply executing
    Chunk_lance
again in the config file directory.
Of course AFTER you fixed the problem - unless it was a machine problem. In the latter case, just restart the simulation with 'Chunk_lance'.


Restart from previous restart file

Continue simulation from a restart file:

  1. Copy restart file of previous month (if there is more than 1 part, copy all parts!)  from the archive (${CLIMAT_archdir}/Restarts) back into the execution directory "~/MODEL_EXEC_RUN/$TRUE_HOST"
  2. Gunzip and unarchive (cmcarc -x -f ...) the restart file(s) in ~/MODEL_EXEC_RUN/$TRUE_HOST
    The cmcarc-command will create a new directory, but the *.ca file will remain in the directory. You can remove it again.
  3. Go into the config file directory
  4. Edit the log file 'chunk_job.log':
    (First I suggest to make a backup copy of the log file.)
    The remove all lines concerning the month you want to rerun and all following lines.
  5. If you are running the entry in parallel, you will also have to remove all the ${exp}_entry_finished flags in your config file directory for all the months you want to rerun. Otherwise the entries for these months will not get rerun!
  6. Execute "Chunk_lance" again (without the '-start'!!!)



  • Aucune étiquette