The actual restart files are called:

  • gem_restart  
  • gmm_restart  
  • Whiteboard.ckpt

There is one set for each processor tile (???-???).
Depending on the state of the simulation they can be in 3 different locations:

1. While the model is running the restart files are in your execution directory:

    ~/MODEL_EXEC_RUN/${TRUE_HOST}/${GEM_exp}/RUNMOD/work/cfg_0000/???-???
resp. for YinYang grids:
    ~/MODEL_EXEC_RUN/${TRUE_HOST}/${GEM_exp}/RUNMOD/work/cfg_0000/YIN/???-???
    ~/MODEL_EXEC_RUN/${TRUE_HOST}/${GEM_exp}/RUNMOD/work/cfg_0000/YAN/???-???


2. Once the model simulation for a month has finished but the post processing is not finish yet they are under:

    ~/MODEL_EXEC_RUN/${TRUE_HOST}/Restarts/${GEM_exp}/*step*/${GEM_exp}/RUNMOD/work/cfg_0000/...

If you need to copy them back under ~/MODEL_EXEC_RUN/${TRUE_HOST} you need to copy the second blue ${GEM_exp} directory!


3. Once the post processing finished the archiving of the restarts they will be in your archive under:

    ${CLIMAT_archdir}/Restarts

Depending on the script version you are using they can have different names:

  • ${GEM_exp}_step*.tarz
  • ${GEM_exp}_step*.ca.gz

The archived restarts contain the whole directory structure: ${GEM_exp}/RUNMOD/work/cfg_0000/...
If you need to get these restart files back under ~/MODEL_EXEC_RUN/${TRUE_HOST} you need to unarchive them:

To unarchive files ending on *.tarz you can use the following commands:

      cd ~/MODEL_EXEC_RUN/${TRUE_HOST}
      tar xzvf ${CLIMAT_archdir}/Restarts/${GEM_exp}_step*.tarz

To unarchive files ending on *.ca.gz you can use the following commands:

      cd ${CLIMAT_archdir}/Restarts 
      for file in ${GEM_exp}_step*.ca.gz ; do gunzip -c ${file} > ~/MODEL_EXEC_RUN/${TRUE_HOST}/${file%.gz} ; done
      cd ~/MODEL_EXEC_RUN/${TRUE_HOST}
      for file in ${GEM_exp}_step*.ca ; do cmcarc -x -f ${file} ; done

When having just one restart archive file you do not need the loops but depending on the grid size there could be more than one file per month. If that is the case you need to gunzip and unarchive all of them - hence the loops.
The cmcarc-command will create a new directory, but the *.ca file(s) will remain in the directory. You can remove it/them afterwards.

  • Aucune étiquette
Écrire un commentaire...