Ignore:
Timestamp:
11/28/08 18:12:33 (16 years ago)
Author:
sdipsl
Message:

SD : - 2 options for asynchronous rebuild

  • from SCRATCHDIR (very good for platine, the same for mercure)
  • from Archive (good for platine, good for mercure)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_rebuild

    r26 r34  
    2727#-Q- sx8mercure #PBS -S /usr/bin/ksh         # shell de soumission 
    2828#-Q- sx8mercure #PBS -l memsz_job=1gb        # Limite memoire a 1 Go 
    29 #-Q- sx8mercure #PBS -l cputim_job=4:00:00   # Limite temps a 1 heures 
     29#-Q- sx8mercure #PBS -l cputim_job=24:00:00   # Limite temps a 1 heures 
    3030#-Q- sx8mercure #PBS -q scalaire 
    3131#-Q- default #!/bin/ksh 
     
    6767#D- Default : value from AA_job if any 
    6868libIGCM=${libIGCM:=/home/rech/ces/rces452/libIGCM} 
    69  
    70 #D- TEMPORARY Flag to determine atmospheric resolution 
    71 #D- Default : value from atmospheric driver if any 
    72 RESOL_ATM=${RESOL_ATM:=LMD144142} 
    73  
    74 #D- TEMPORARY Flag to determine ocean resolution 
    75 #D- Default : value from ocean driver if any 
    76 RESOL_OCE=${RESOL_OCE:=ORCA2} 
    77  
    78 #D- TEMPORARY Flag to determine ice resolution 
    79 #D- Default : value from ice driver if any 
    80 RESOL_ICE=${RESOL_ICE:=ORCA2} 
    81  
    82 #D- Flag to determine surface resolution 
    83 #D- Default : value from surface driver if any 
    84 RESOL_SRF=${RESOL_SRF:=LMD144142} 
    8569 
    8670######################################################################## 
     
    127111echo 
    128112 
     113if [ ${RebuildFromArchive} = true ] ; then 
     114    RUN_DIR=${RUN_DIR_PATH} 
     115else 
     116    RUN_DIR=${REBUILD_DIR} 
     117fi 
    129118IGCM_sys_Cd ${RUN_DIR} 
    130 ListAllRebuildDir=$( ls -d ${RUN_DIR}/REBUILD_* | grep -B $(( ${NbRebuildDir} -1 )) ${PeriodDateBegin} ) 
     119ListAllRebuildDir=$( ls -d ${REBUILD_DIR}/REBUILD_* | grep -B $(( ${NbRebuildDir} -1 )) ${PeriodDateBegin} ) 
    131120 
    132121for directory in ${ListAllRebuildDir} ; do 
    133122    # 
    134     IGCM_sys_Cd ${directory} 
     123    if [ ${RebuildFromArchive} = true ] ; then 
     124        IGCM_sys_Get_Dir ${directory} ${RUN_DIR} 
     125    fi 
     126    IGCM_sys_Cd ${RUN_DIR}/$( basename ${directory} ) 
    135127    # -------------------------------------------------------------------- 
    136128    # Function define in rebuild.ksh has not been closed yet. Do it now 
    137129    # -------------------------------------------------------------------- 
    138     echo IGCM_debug_PopStack "IGCM_post_Submit" >> ${directory}/rebuild.ksh 
    139     echo }                                      >> ${directory}/rebuild.ksh 
     130    echo IGCM_debug_PopStack "IGCM_post_Submit" >> rebuild.ksh 
     131    echo }                                      >> rebuild.ksh 
    140132 
    141133    # -------------------------------------------------------------------- 
    142134    # Source function include in the REBUILD ksh and rebuild 
    143135    # -------------------------------------------------------------------- 
    144     . ${directory}/rebuild.ksh 
     136    . ${RUN_DIR}/$( basename ${directory} )/rebuild.ksh 
    145137    IGCM_FlushRebuild 
    146138    # 
Note: See TracChangeset for help on using the changeset viewer.