Changeset 34 for trunk/libIGCM/AA_rebuild
- Timestamp:
- 11/28/08 18:12:33 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libIGCM/AA_rebuild
r26 r34 27 27 #-Q- sx8mercure #PBS -S /usr/bin/ksh # shell de soumission 28 28 #-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 heures29 #-Q- sx8mercure #PBS -l cputim_job=24:00:00 # Limite temps a 1 heures 30 30 #-Q- sx8mercure #PBS -q scalaire 31 31 #-Q- default #!/bin/ksh … … 67 67 #D- Default : value from AA_job if any 68 68 libIGCM=${libIGCM:=/home/rech/ces/rces452/libIGCM} 69 70 #D- TEMPORARY Flag to determine atmospheric resolution71 #D- Default : value from atmospheric driver if any72 RESOL_ATM=${RESOL_ATM:=LMD144142}73 74 #D- TEMPORARY Flag to determine ocean resolution75 #D- Default : value from ocean driver if any76 RESOL_OCE=${RESOL_OCE:=ORCA2}77 78 #D- TEMPORARY Flag to determine ice resolution79 #D- Default : value from ice driver if any80 RESOL_ICE=${RESOL_ICE:=ORCA2}81 82 #D- Flag to determine surface resolution83 #D- Default : value from surface driver if any84 RESOL_SRF=${RESOL_SRF:=LMD144142}85 69 86 70 ######################################################################## … … 127 111 echo 128 112 113 if [ ${RebuildFromArchive} = true ] ; then 114 RUN_DIR=${RUN_DIR_PATH} 115 else 116 RUN_DIR=${REBUILD_DIR} 117 fi 129 118 IGCM_sys_Cd ${RUN_DIR} 130 ListAllRebuildDir=$( ls -d ${R UN_DIR}/REBUILD_* | grep -B $(( ${NbRebuildDir} -1 )) ${PeriodDateBegin} )119 ListAllRebuildDir=$( ls -d ${REBUILD_DIR}/REBUILD_* | grep -B $(( ${NbRebuildDir} -1 )) ${PeriodDateBegin} ) 131 120 132 121 for directory in ${ListAllRebuildDir} ; do 133 122 # 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} ) 135 127 # -------------------------------------------------------------------- 136 128 # Function define in rebuild.ksh has not been closed yet. Do it now 137 129 # -------------------------------------------------------------------- 138 echo IGCM_debug_PopStack "IGCM_post_Submit" >> ${directory}/rebuild.ksh139 echo } >> ${directory}/rebuild.ksh130 echo IGCM_debug_PopStack "IGCM_post_Submit" >> rebuild.ksh 131 echo } >> rebuild.ksh 140 132 141 133 # -------------------------------------------------------------------- 142 134 # Source function include in the REBUILD ksh and rebuild 143 135 # -------------------------------------------------------------------- 144 . ${ directory}/rebuild.ksh136 . ${RUN_DIR}/$( basename ${directory} )/rebuild.ksh 145 137 IGCM_FlushRebuild 146 138 #
Note: See TracChangeset
for help on using the changeset viewer.