Changeset 592 for branches/libIGCM_MPI_OpenMP/AA_pack_debug
- Timestamp:
- 03/22/12 18:02:50 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/libIGCM_MPI_OpenMP/AA_pack_debug
r571 r592 3 3 #-Q- cesium ## CESIUM CEA ## 4 4 #-Q- cesium ###################### 5 #-Q- cesium #MSUB -r PACKDEBUG # Nom du job 5 #-Q- cesium #MSUB -r PACKDEBUG # Nom du job 6 6 #-Q- cesium #MSUB -N 1 # Reservation du noeud 7 7 #-Q- cesium #MSUB -n 1 # Reservation du processus … … 27 27 #-Q- sx8brodie # Nom du travail LoadLeveler 28 28 #-Q- sx8brodie # @ job_name = PACKDEBUG 29 #-Q- sx8brodie # Fichier de sortie standard du travail 29 #-Q- sx8brodie # Fichier de sortie standard du travail 30 30 #-Q- sx8brodie # @ output = $(job_name).$(jobid) 31 31 #-Q- sx8brodie # Fichier de sortie d'erreur du travail … … 81 81 #-Q- sx9mercure ## CESIUM CEA ## 82 82 #-Q- sx9mercure ###################### 83 #-Q- sx9mercure #MSUB -r PACKDEBUG # Nom du job 83 #-Q- sx9mercure #MSUB -r PACKDEBUG # Nom du job 84 84 #-Q- sx9mercure #MSUB -N 1 # Reservation du noeud 85 85 #-Q- sx9mercure #MSUB -n 1 # Reservation du processus … … 91 91 #-Q- titane ## TITANE CEA ## 92 92 #-Q- titane ###################### 93 #-Q- titane #MSUB -r PACKDEBUG # Nom du job 93 #-Q- titane #MSUB -r PACKDEBUG # Nom du job 94 94 #-Q- titane #MSUB -eo 95 95 #-Q- titane #MSUB -n 1 # Reservation du processus … … 178 178 #RESTART/ATM_****.nc 179 179 #RESTART/OCE_****.nc 180 #Attention de bien conserver les dates d'origines 180 #Attention de bien conserver les dates d'origines 181 181 # 182 182 #Dans le cadre de la production nouvelle chaine 183 183 #ils auront directement le bon nom 184 184 # 185 #On veut egalement que l'archive soit par periode de temps 186 # cette periode est definie par la taille du pack donc connue 187 # en entree du script (1M, 1Y, 5Y, 10Y etc...) 188 # 189 # $1= PATH/config_card d'une simulation avec 190 # TagName/JobName/ExperimentName/SpaceName/DateBegin/DateEnd /PATH_SIMUL185 #On veut egalement que l'archive soit par periode de temps 186 # cette periode est definie par la taille du pack donc connue 187 # en entree du script (1M, 1Y, 5Y, 10Y etc...) 188 # 189 # $1= PATH/config_card d'une simulation avec 190 # TagName/JobName/ExperimentName/SpaceName/DateBegin/DateEnd 191 191 # $2=PeriodPack en M/m ou Y/y 192 192 … … 223 223 fi 224 224 225 # 225 #==================================================== 226 226 # First of all 227 227 # 228 #### 0- lecture de config.card 229 #### on veut les renseignements suivants : 230 #### JobName, PATH_SIMUL, DateBegin et DateEnd 231 228 # Read config.card 232 229 IGCM_card_DefineArrayFromSection ${CARD_DIR}/config.card UserChoices 233 230 typeset option … … 250 247 251 248 #==================================================== 252 #R_SAVE : Job output storage directory 253 #R_BUFR : Job output buffered directory 249 # Prepare environment 250 #R_SAVE : Job output storage directory 251 #R_BUFR : Job output buffered directory 252 #STORE_DEBUG : Where we store tar files 254 253 255 254 if ( [ ! X${config_UserChoices_SpaceName} = X ] && [ ! X${config_UserChoices_ExperimentName} = X ] ) ; then … … 264 263 [ $? != 0 ] && IGCM_debug_Exit "IGCM_sys_TestDirArchive" 265 264 266 #### Preparation de l'environnement 267 # repertoire dans lequel seront crees les archives 268 #STORE_DEBUG=/scratch/cont003/p86denv/Pack_Test/DEBUG 265 #STORE_DEBUG=/ccc/store/cont003/dsm/p86denv/.../DEBUG 269 266 STORE_DEBUG=${R_SAVE}/DEBUG 270 267 IGCM_sys_MkdirArchive ${STORE_DEBUG} 271 268 269 #cd ${STORE_DEBUG} 270 #rm -f * 271 272 272 # Switch to script variables meaning (try to be compatible with ipsl_pack TGCC moving procedure) 273 273 JobName=${config_UserChoices_JobName} 274 PATH_SIMUL=${R_BUFR} 275 echo $JobName $PATH_SIMUL $DateBegin $DateEnd 276 277 #### 1- renommer les fichiers ###### 278 #cd ${STORE_DEBUG} 279 #rm -rf * 280 281 # On les copie sur le scratchdir en changeant le nom et conservant la date 274 echo $JobName $DateBegin $DateEnd 275 282 276 # Clear txt file lists 283 277 rm -f ${RUN_DIR}/liste_debug_files.txt … … 286 280 287 281 # Create sorted debug list to work with 288 find ${ PATH_SIMUL}/*/Debug -type f | sort >> ${RUN_DIR}/liste_debug_files.txt282 find ${R_BUFR}/*/Debug -type f | sort >> ${RUN_DIR}/liste_debug_files.txt 289 283 290 284 # Rename debug files we will work with using symlinks … … 312 306 IGCM_debug_PrintVariables 3 number_pack 313 307 314 DaysTemp=$( IGCM_date_DaysIn NextPeriod ${date_begin_pack} ${PeriodPack} )315 date_end_pack=$( IGCM_date_AddDaysToGregorianDate ${date_begin_pack} $ {DaysTemp})308 DaysTemp=$( IGCM_date_DaysInCurrentPeriod ${date_begin_pack} ${PeriodPack} ) 309 date_end_pack=$( IGCM_date_AddDaysToGregorianDate ${date_begin_pack} $(( ${DaysTemp} - 1 )) ) 316 310 317 311 for file in $( gawk '{print $11}' ${RUN_DIR}/new_liste_debug_files.txt ); do 318 312 extract_date_file=$( echo ${file} | sed -e "s/.*${JobName}_[0-9]*_//" ) 319 313 date_file=$( echo ${extract_date_file} | sed 's/\([0-9]\{8\}\)_.*$/\1/g' ) 320 # echo pack n°${number_pack} ${date_file} ${date_begin_pack} ${date_end_pack} 321 if [ ${date_file} -l t ${date_end_pack} ] && [ ${date_file} -ge ${date_begin_pack} ] ; then314 # echo pack n°${number_pack} ${date_file} ${date_begin_pack} ${date_end_pack} 315 if [ ${date_file} -le ${date_end_pack} ] && [ ${date_file} -ge ${date_begin_pack} ] ; then 322 316 echo $( basename ${file} ) >> ${RUN_DIR}/liste_pack_${number_pack}.txt 323 echo $( ls -L ${file} ) >> ${RUN_DIR}/liste_remove_pack_${number_pack}.txt 324 317 echo $( readlink ${file} ) >> ${RUN_DIR}/liste_remove_pack_${number_pack}.txt 325 318 # Will not work. Need to find a better ordering. 326 319 # elif [ ${date_file} -ge ${date_end_pack} ] ; then … … 350 343 351 344 done 345 346 # Clean RUN_DIR_PATH (necessary for cesium and titane only) 347 IGCM_sys_RmRunDir -Rf ${RUN_DIR_PATH} 348 349 date
Note: See TracChangeset
for help on using the changeset viewer.