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_fromArchive

    r147 r157  
    123123#set -vx 
    124124 
    125 if [ ${RebuildFromArchive} = true ] ; then 
    126     RUN_DIR=${RUN_DIR_PATH} 
    127     ListAllRebuildDir=$( IGCM_sys_RshArchive ls -d ${REBUILD_DIR}/REBUILD_* | grep -B $(( ${NbRebuildDir} -1 )) ${PeriodDateBegin} ) 
    128 else 
    129     RUN_DIR=${REBUILD_DIR} 
    130     ListAllRebuildDir=$( ls -d ${REBUILD_DIR}/REBUILD_* | grep  ${PeriodDateBegin} | tail -${NbRebuildDir} ) 
    131 fi 
     125RUN_DIR=${RUN_DIR_PATH} 
     126ListAllRebuildDir=$( IGCM_sys_RshArchive ls -d ${REBUILD_DIR}/REBUILD_* | grep -B $(( ${NbRebuildDir} -1 )) ${PeriodDateBegin} ) 
     127# 
    132128IGCM_sys_Cd ${RUN_DIR} 
    133129 
    134130for directory in ${ListAllRebuildDir} ; do 
    135131    # 
    136     if [ ${RebuildFromArchive} = true ] ; then 
    137         IGCM_sys_Get_Dir ${directory} ${RUN_DIR} 
    138     fi 
     132    IGCM_sys_Get_Dir ${directory} ${RUN_DIR} 
     133    # 
    139134    IGCM_sys_Cd ${RUN_DIR}/$( basename ${directory} ) 
    140     # -------------------------------------------------------------------- 
    141     # Function define in rebuild.ksh has not been closed yet. Do it now 
    142     # -------------------------------------------------------------------- 
    143     echo IGCM_debug_PopStack "IGCM_FlushRebuild" >> rebuild.ksh 
    144     echo }                                       >> rebuild.ksh 
    145135 
    146     IGCM_sys_Put_Out rebuild.ksh ${directory} 
    147136    # -------------------------------------------------------------------- 
    148137    # Source function include in the REBUILD ksh and rebuild 
     
    153142    IGCM_sys_Cd ${RUN_DIR} 
    154143    # Clean Up 
    155     #IGCM_sys_RshArchive IGCM_sys_Rm -rf ${directory} 
     144    IGCM_sys_RshArchive rm -rf ${directory} 
    156145done 
Note: See TracChangeset for help on using the changeset viewer.