Ignore:
Timestamp:
08/14/09 17:58:55 (15 years ago)
Author:
sdipsl
Message:
  • RebuildFromWorkdir? is back. Will use BIG_DIR as temp storage directory
    • ideally RUN_DIR_PATH and BIG_DIR are on the same filesystem (mv REBUILD_DIR BIG_DIR)
    • save lot of time between iteration for IO intensive simulation up to 3 minutes by iteration for CMIP5 like IO.
  • rebuild.ksh will be usable as it is (in case you need to run it by hand)
  • clean Up : if rebuild run smoothly we clean everything (either FromArchive? or FromWorkdir?)
  • Watch your quota on the BIG_DIR (SCRATCHDIR OR WORKDIR depending on machine) before you play with that.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_rebuild_fromWorkdir

    r147 r157  
    124124#set -vx 
    125125 
    126 if [ ${RebuildFromArchive} = true ] ; then 
    127     RUN_DIR=${RUN_DIR_PATH} 
    128     ListAllRebuildDir=$( IGCM_sys_RshArchive ls -d ${REBUILD_DIR}/REBUILD_* | grep  ${PeriodDateBegin} | tail -${NbRebuildDir} ) 
    129 else 
    130     RUN_DIR=${REBUILD_DIR} 
    131     ListAllRebuildDir=$( ls -d ${REBUILD_DIR}/REBUILD_* | grep  ${PeriodDateBegin} | tail -${NbRebuildDir} ) 
    132 fi 
     126RUN_DIR=${REBUILD_DIR} 
     127ListAllRebuildDir=$( ls -d ${REBUILD_DIR}/REBUILD_* | grep  ${PeriodDateBegin} | tail -${NbRebuildDir} ) 
     128# 
    133129IGCM_sys_Cd ${RUN_DIR} 
    134130 
    135131for directory in ${ListAllRebuildDir} ; do 
    136132    # 
    137     if [ ${RebuildFromArchive} = true ] ; then 
    138         IGCM_sys_Get_Dir ${directory} ${RUN_DIR} 
    139     fi 
    140133    IGCM_sys_Cd ${RUN_DIR}/$( basename ${directory} ) 
    141     # -------------------------------------------------------------------- 
    142     # Function define in rebuild.ksh has not been closed yet. Do it now 
    143     # -------------------------------------------------------------------- 
    144     echo IGCM_debug_PopStack "IGCM_FlushRebuild" >> rebuild.ksh 
    145     echo }                                       >> rebuild.ksh 
    146134 
    147     IGCM_sys_Put_Out rebuild.ksh ${directory} 
    148135    # -------------------------------------------------------------------- 
    149136    # Source function include in the REBUILD ksh and rebuild 
Note: See TracChangeset for help on using the changeset viewer.