[547] | 1 | #-Q- cesium #!/bin/ksh |
---|
| 2 | #-Q- cesium ###################### |
---|
| 3 | #-Q- cesium ## CESIUM CEA ## |
---|
| 4 | #-Q- cesium ###################### |
---|
[592] | 5 | #-Q- cesium #MSUB -r PACKDEBUG # Nom du job |
---|
[547] | 6 | #-Q- cesium #MSUB -N 1 # Reservation du noeud |
---|
| 7 | #-Q- cesium #MSUB -n 1 # Reservation du processus |
---|
| 8 | #-Q- cesium #MSUB -T 86400 # Limite de temps elapsed du job |
---|
| 9 | #-Q- cesium #MSUB -E "-j o" |
---|
| 10 | #-Q- cesium #MSUB -E "-S /bin/ksh" |
---|
| 11 | #-Q- platine #!/usr/bin/ksh |
---|
| 12 | #-Q- platine ################### |
---|
| 13 | #-Q- platine ## PLATINE CEA ## |
---|
| 14 | #-Q- platine ################### |
---|
| 15 | #-Q- platine #BSUB -J PACKDEBUG # Nom du job |
---|
| 16 | #-Q- platine #BSUB -N # message a la fin du job |
---|
| 17 | #-Q- platine #BSUB -n 1 # reservation des processeurs pour le job |
---|
| 18 | #-Q- platine #BSUB -W 4:00 # Limite temps |
---|
| 19 | #-Q- platine #BSUB -q post # Passage en queue post |
---|
| 20 | #-Q- platine #BSUB -L /bin/ksh |
---|
| 21 | #-Q- sx8brodie #!/bin/ksh |
---|
| 22 | #-Q- sx8brodie ####################### |
---|
| 23 | #-Q- sx8brodie ## SX8BRODIE IDRIS ## |
---|
| 24 | #-Q- sx8brodie ####################### |
---|
| 25 | #-Q- sx8brodie # Temps Elapsed max. d'une requete hh:mm:ss |
---|
| 26 | #-Q- sx8brodie # @ wall_clock_limit = 10:00:00 |
---|
| 27 | #-Q- sx8brodie # Nom du travail LoadLeveler |
---|
| 28 | #-Q- sx8brodie # @ job_name = PACKDEBUG |
---|
[592] | 29 | #-Q- sx8brodie # Fichier de sortie standard du travail |
---|
[547] | 30 | #-Q- sx8brodie # @ output = $(job_name).$(jobid) |
---|
| 31 | #-Q- sx8brodie # Fichier de sortie d'erreur du travail |
---|
| 32 | #-Q- sx8brodie # @ error = $(job_name).$(jobid) |
---|
| 33 | #-Q- sx8brodie # pour recevoir un mail en cas de depassement du temps Elapsed (ou autre pb.) |
---|
| 34 | #-Q- sx8brodie # @ notification = error |
---|
[554] | 35 | #-Q- sx8brodie # @ environment = $DEBUG_debug ; $MODIPSL ; $libIGCM ; $libIGCM_SX ; $SUBMIT_DIR ; $DateBegin ; $DateEnd ; $PeriodPack ; $StandAlone ; $MASTER |
---|
[547] | 36 | #-Q- sx8brodie # @ queue |
---|
| 37 | #-Q- aix6 #!/bin/ksh |
---|
| 38 | #-Q- aix6 ####################### |
---|
| 39 | #-Q- aix6 ## VARGAS IDRIS ## |
---|
| 40 | #-Q- aix6 ####################### |
---|
| 41 | #-Q- aix6 # Temps Elapsed max. d'une requete hh:mm:ss |
---|
| 42 | #-Q- aix6 # @ wall_clock_limit = 10:00:00 |
---|
| 43 | #-Q- aix6 # Nom du travail LoadLeveler |
---|
| 44 | #-Q- aix6 # @ job_name = PACKDEBUG |
---|
| 45 | #-Q- aix6 # Fichier de sortie standard du travail |
---|
| 46 | #-Q- aix6 # @ output = $(job_name).$(jobid) |
---|
| 47 | #-Q- aix6 # Fichier de sortie d'erreur du travail |
---|
| 48 | #-Q- aix6 # @ error = $(job_name).$(jobid) |
---|
| 49 | #-Q- aix6 # pour recevoir un mail en cas de depassement du temps Elapsed (ou autre pb.) |
---|
| 50 | #-Q- aix6 # @ notification = error |
---|
[554] | 51 | #-Q- aix6 # @ environment = $DEBUG_debug ; $MODIPSL ; $libIGCM ; $libIGCM_SX ; $SUBMIT_DIR ; $DateBegin ; $DateEnd ; $PeriodPack ; $StandAlone ; $MASTER |
---|
[547] | 52 | #-Q- aix6 # @ queue |
---|
| 53 | #-Q- ulam #!/bin/ksh |
---|
| 54 | #-Q- ulam ####################### |
---|
| 55 | #-Q- ulam ## VARGAS IDRIS ## |
---|
| 56 | #-Q- ulam ####################### |
---|
| 57 | #-Q- ulam # Temps Elapsed max. d'une requete hh:mm:ss |
---|
| 58 | #-Q- ulam # @ wall_clock_limit = 10:00:00 |
---|
| 59 | #-Q- ulam # Nom du travail LoadLeveler |
---|
| 60 | #-Q- ulam # @ job_name = PACKDEBUG |
---|
| 61 | #-Q- ulam # Fichier de sortie standard du travail |
---|
| 62 | #-Q- ulam # @ output = $(job_name).$(jobid) |
---|
| 63 | #-Q- ulam # Fichier de sortie d'erreur du travail |
---|
| 64 | #-Q- ulam # @ error = $(job_name).$(jobid) |
---|
| 65 | #-Q- ulam # pour recevoir un mail en cas de depassement du temps Elapsed (ou autre pb.) |
---|
| 66 | #-Q- ulam # @ notification = error |
---|
[554] | 67 | #-Q- ulam # @ environment = $DEBUG_debug ; $MODIPSL ; $libIGCM ; $libIGCM_SX ; $SUBMIT_DIR ; $DateBegin ; $DateEnd ; $PeriodPack ; $StandAlone ; $MASTER |
---|
[547] | 68 | #-Q- ulam # @ queue |
---|
| 69 | #-Q- sx8mercure #!/bin/ksh |
---|
| 70 | #-Q- sx8mercure ###################### |
---|
| 71 | #-Q- sx8mercure ## SX8MERCURE CEA ## |
---|
| 72 | #-Q- sx8mercure ###################### |
---|
| 73 | #-Q- sx8mercure #PBS -N PACKDEBUG # Nom du job |
---|
| 74 | #-Q- sx8mercure #PBS -j o # regroupement des stdout et stderr |
---|
| 75 | #-Q- sx8mercure #PBS -S /usr/bin/ksh # shell de soumission |
---|
| 76 | #-Q- sx8mercure #PBS -l memsz_job=1gb # Limite memoire a 1 Go |
---|
| 77 | #-Q- sx8mercure #PBS -l cputim_job=24:00:00 # Limite temps a 1 heures |
---|
| 78 | #-Q- sx8mercure #PBS -q scalaire |
---|
| 79 | #-Q- sx9mercure #!/bin/ksh |
---|
| 80 | #-Q- sx9mercure ###################### |
---|
[597] | 81 | #-Q- sx9mercure ## SX9MERCURE CCRT ## |
---|
[547] | 82 | #-Q- sx9mercure ###################### |
---|
[597] | 83 | #-Q- sx9mercure #PBS -N PACKDEBUG # Nom du job |
---|
| 84 | #-Q- sx9mercure #PBS -j o # regroupement des stdout et stderr |
---|
| 85 | #-Q- sx9mercure #PBS -S /usr/bin/ksh # shell de soumission |
---|
| 86 | #-Q- sx9mercure #PBS -l memsz_job=1gb # Limite memoire a 1 Go |
---|
[605] | 87 | #-Q- sx9mercure #PBS -l elapstim_req=24:00:00 # Limite temps a 1 heures |
---|
[597] | 88 | #-Q- sx9mercure #PBS -q scalaire |
---|
[547] | 89 | #-Q- titane #!/bin/ksh |
---|
| 90 | #-Q- titane ###################### |
---|
| 91 | #-Q- titane ## TITANE CEA ## |
---|
| 92 | #-Q- titane ###################### |
---|
[592] | 93 | #-Q- titane #MSUB -r PACKDEBUG # Nom du job |
---|
[547] | 94 | #-Q- titane #MSUB -eo |
---|
| 95 | #-Q- titane #MSUB -n 1 # Reservation du processus |
---|
| 96 | #-Q- titane #MSUB -T 86400 # Limite de temps elapsed du job |
---|
| 97 | #-Q- titane #MSUB -q mono |
---|
| 98 | #-Q- lxiv8 ###################### |
---|
| 99 | #-Q- lxiv8 ## OBELIX LSCE ## |
---|
| 100 | #-Q- lxiv8 ###################### |
---|
| 101 | #-Q- lxiv8 #PBS -N PACKDEBUG |
---|
| 102 | #-Q- lxiv8 #PBS -m a |
---|
| 103 | #-Q- lxiv8 #PBS -j oe |
---|
| 104 | #-Q- lxiv8 #PBS -q medium |
---|
| 105 | #-Q- lxiv8 #PBS -o PACKDEBUG.$$ |
---|
| 106 | #-Q- lxiv8 #PBS -S /bin/ksh |
---|
| 107 | #-Q- default #!/bin/ksh |
---|
| 108 | #-Q- default ################## |
---|
| 109 | #-Q- default ## DEFAULT HOST ## |
---|
| 110 | #-Q- default ################## |
---|
| 111 | |
---|
| 112 | #************************************************************** |
---|
| 113 | # Author: Sebastien Denvil |
---|
| 114 | # Contact: Sebastien.Denvil__at__ipsl.jussieu.fr |
---|
| 115 | # $Revision:: $ Revision of last commit |
---|
| 116 | # $Author:: $ Author of last commit |
---|
| 117 | # $Date:: $ Date of last commit |
---|
| 118 | # IPSL (2006) |
---|
| 119 | # This software is governed by the CeCILL licence see libIGCM/libIGCM_CeCILL.LIC |
---|
| 120 | # |
---|
| 121 | #************************************************************** |
---|
| 122 | |
---|
| 123 | #set -eu |
---|
| 124 | #set -vx |
---|
| 125 | |
---|
| 126 | date |
---|
| 127 | |
---|
| 128 | ######################################################################## |
---|
| 129 | |
---|
| 130 | #D- Flag to determine if this job in a standalone mode |
---|
| 131 | #D- Default : value from AA_job if any |
---|
| 132 | StandAlone=${StandAlone:=true} |
---|
| 133 | |
---|
[554] | 134 | #D- Path to libIGCM |
---|
| 135 | #D- Default : value from AA_job if any |
---|
| 136 | # WARNING For StandAlone use : To run this script on some machine (ulam and cesium) |
---|
| 137 | # WARNING you must check MirrorlibIGCM variable in sys library. |
---|
| 138 | # WARNING If this variable is true, you must use libIGCM_POST path instead |
---|
| 139 | # WARNING of your running libIGCM directory. |
---|
| 140 | libIGCM=${libIGCM:=::modipsl::/libIGCM} |
---|
| 141 | |
---|
| 142 | #-D- $hostname of the MASTER job when SUBMIT_DIR is not visible on postprocessing computer. |
---|
| 143 | MASTER=${MASTER:=mercure|titane|brodie|vargas} |
---|
| 144 | |
---|
[547] | 145 | #D- Flag to determine begin date for restart pack |
---|
| 146 | #D- Default : value from AA_job if any |
---|
[571] | 147 | DateBegin=${DateBegin:=20000101} |
---|
[547] | 148 | |
---|
| 149 | #D- Flag to determine end date for restart pack |
---|
| 150 | #D- Default : value from AA_job if any |
---|
[554] | 151 | DateEnd=${DateEnd:=20691231} |
---|
[547] | 152 | |
---|
| 153 | #D- Flag to determine pack period |
---|
| 154 | #D- Default : value from AA_job if any |
---|
[554] | 155 | PeriodPack=${PeriodPack:=10Y} |
---|
[547] | 156 | |
---|
[554] | 157 | #D- Uncomment to run interactively |
---|
| 158 | #D- For testing purpose, will be remove |
---|
| 159 | #SUBMIT_DIR=${PWD} |
---|
| 160 | #RUN_DIR_PATH=${SCRATCHDIR}/Pack_Test |
---|
[547] | 161 | |
---|
| 162 | #D- Increased verbosity (1, 2, 3) |
---|
| 163 | #D- Default : value from AA_job if any |
---|
| 164 | Verbosity=${Verbosity:=3} |
---|
| 165 | |
---|
| 166 | #D- Low level debug : to bypass lib test checks and stack construction |
---|
| 167 | #D- Default : value from AA_job if any |
---|
| 168 | DEBUG_debug=${DEBUG_debug:=false} |
---|
| 169 | |
---|
[554] | 170 | #D- Keep following comments for now. Will be remove. |
---|
| 171 | |
---|
[547] | 172 | #on veut archiver les fichiers restart |
---|
| 173 | #Dans le cadre du demenagement ils seront renommes |
---|
| 174 | #ATM/Restart/****.nc |
---|
| 175 | #OCE/Restart/****.nc |
---|
| 176 | #... |
---|
| 177 | #sous la forme |
---|
| 178 | #RESTART/ATM_****.nc |
---|
| 179 | #RESTART/OCE_****.nc |
---|
[592] | 180 | #Attention de bien conserver les dates d'origines |
---|
[547] | 181 | # |
---|
| 182 | #Dans le cadre de la production nouvelle chaine |
---|
| 183 | #ils auront directement le bon nom |
---|
| 184 | # |
---|
[592] | 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...) |
---|
[547] | 188 | # |
---|
[592] | 189 | # $1= PATH/config_card d'une simulation avec |
---|
| 190 | # TagName/JobName/ExperimentName/SpaceName/DateBegin/DateEnd |
---|
[554] | 191 | # $2=PeriodPack en M/m ou Y/y |
---|
[547] | 192 | |
---|
| 193 | ######################################################################## |
---|
| 194 | |
---|
| 195 | . ${libIGCM}/libIGCM_debug/libIGCM_debug.ksh |
---|
| 196 | ( ${DEBUG_debug} ) && IGCM_debug_Check |
---|
| 197 | . ${libIGCM}/libIGCM_card/libIGCM_card.ksh |
---|
| 198 | ( ${DEBUG_debug} ) && IGCM_card_Check |
---|
| 199 | . ${libIGCM}/libIGCM_date/libIGCM_date.ksh |
---|
| 200 | ( ${DEBUG_debug} ) && IGCM_date_Check |
---|
| 201 | #------- |
---|
| 202 | . ${libIGCM}/libIGCM_sys/libIGCM_sys.ksh |
---|
| 203 | . ${libIGCM}/libIGCM_post/libIGCM_post.ksh |
---|
| 204 | |
---|
| 205 | ######################################################################## |
---|
| 206 | |
---|
| 207 | #set -vx |
---|
| 208 | |
---|
| 209 | RUN_DIR=${RUN_DIR_PATH} |
---|
| 210 | IGCM_sys_MkdirWork ${RUN_DIR} |
---|
| 211 | IGCM_sys_Cd ${RUN_DIR} |
---|
| 212 | |
---|
| 213 | # ------------------------------------------------------------------ |
---|
| 214 | # Test if all was right before proceeding further |
---|
| 215 | # ------------------------------------------------------------------ |
---|
| 216 | IGCM_debug_Verif_Exit_Post |
---|
| 217 | |
---|
| 218 | if [ ${StandAlone} = true ] ; then |
---|
| 219 | CARD_DIR=${SUBMIT_DIR} |
---|
| 220 | else |
---|
| 221 | CARD_DIR=${RUN_DIR_PATH}/$( basename ${SUBMIT_DIR} ) |
---|
[614] | 222 | # warning! we copy useless files : Job_xxx, Script_output_xxx, .... |
---|
[547] | 223 | IGCM_sys_Get_Master ${SUBMIT_DIR} ${RUN_DIR_PATH} |
---|
| 224 | fi |
---|
| 225 | |
---|
[592] | 226 | #==================================================== |
---|
[547] | 227 | # First of all |
---|
| 228 | # |
---|
[592] | 229 | # Read config.card |
---|
[547] | 230 | IGCM_card_DefineArrayFromSection ${CARD_DIR}/config.card UserChoices |
---|
| 231 | typeset option |
---|
| 232 | for option in ${config_UserChoices[*]} ; do |
---|
| 233 | IGCM_card_DefineVariableFromOption ${CARD_DIR}/config.card UserChoices ${option} |
---|
| 234 | done |
---|
| 235 | # |
---|
| 236 | echo |
---|
| 237 | IGCM_debug_Print 1 "DefineArrayFromOption : config_UserChoices" |
---|
| 238 | IGCM_debug_PrintVariables 3 config_UserChoices_JobName |
---|
| 239 | IGCM_debug_PrintVariables 3 config_UserChoices_LongName |
---|
| 240 | IGCM_debug_PrintVariables 3 config_UserChoices_TagName |
---|
| 241 | IGCM_debug_PrintVariables 3 config_UserChoices_SpaceName |
---|
| 242 | IGCM_debug_PrintVariables 3 config_UserChoices_ExperimentName |
---|
| 243 | IGCM_debug_PrintVariables 3 config_UserChoices_CalendarType |
---|
| 244 | IGCM_debug_PrintVariables 3 config_UserChoices_DateBegin |
---|
| 245 | IGCM_debug_PrintVariables 3 config_UserChoices_DateEnd |
---|
| 246 | IGCM_debug_PrintVariables 3 config_UserChoices_PeriodLength |
---|
| 247 | echo |
---|
| 248 | |
---|
| 249 | #==================================================== |
---|
[592] | 250 | # Prepare environment |
---|
| 251 | #R_SAVE : Job output storage directory |
---|
| 252 | #R_BUFR : Job output buffered directory |
---|
| 253 | #STORE_DEBUG : Where we store tar files |
---|
[547] | 254 | |
---|
| 255 | if ( [ ! X${config_UserChoices_SpaceName} = X ] && [ ! X${config_UserChoices_ExperimentName} = X ] ) ; then |
---|
| 256 | FreeName=$( echo ${config_UserChoices_JobName} | sed 's/.*_//' ) |
---|
| 257 | R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} |
---|
| 258 | R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_SpaceName}/${config_UserChoices_ExperimentName}/${FreeName} |
---|
| 259 | else |
---|
| 260 | R_SAVE=${R_OUT}/${config_UserChoices_TagName}/${config_UserChoices_JobName} |
---|
| 261 | R_BUFR=${R_BUF}/${config_UserChoices_TagName}/${config_UserChoices_JobName} |
---|
| 262 | fi |
---|
| 263 | IGCM_sys_TestDirArchive ${R_SAVE} |
---|
| 264 | [ $? != 0 ] && IGCM_debug_Exit "IGCM_sys_TestDirArchive" |
---|
| 265 | |
---|
[592] | 266 | #STORE_DEBUG=/ccc/store/cont003/dsm/p86denv/.../DEBUG |
---|
[554] | 267 | STORE_DEBUG=${R_SAVE}/DEBUG |
---|
| 268 | IGCM_sys_MkdirArchive ${STORE_DEBUG} |
---|
[547] | 269 | |
---|
[592] | 270 | #cd ${STORE_DEBUG} |
---|
| 271 | #rm -f * |
---|
| 272 | |
---|
[554] | 273 | # Switch to script variables meaning (try to be compatible with ipsl_pack TGCC moving procedure) |
---|
[547] | 274 | JobName=${config_UserChoices_JobName} |
---|
[592] | 275 | echo $JobName $DateBegin $DateEnd |
---|
[547] | 276 | |
---|
| 277 | # Clear txt file lists |
---|
| 278 | rm -f ${RUN_DIR}/liste_debug_files.txt |
---|
[607] | 279 | rm -f ${RUN_DIR}/liste_out_files.txt |
---|
[547] | 280 | rm -f ${RUN_DIR}/new_liste_debug_files.txt |
---|
| 281 | rm -f ${RUN_DIR}/liste_pack_*.txt |
---|
| 282 | |
---|
| 283 | # Create sorted debug list to work with |
---|
[592] | 284 | find ${R_BUFR}/*/Debug -type f | sort >> ${RUN_DIR}/liste_debug_files.txt |
---|
[547] | 285 | |
---|
[609] | 286 | # Rename debug files we will work with using symlinks. use ???_ prefix ie NF-2 |
---|
[547] | 287 | #gawk -F/ '{dest_name=$(NF-2)("_") $(NF); system("cp --preserve " $0 " "dest_name)}' ${RUN_DIR}/liste_debug_files.txt |
---|
| 288 | gawk -F/ '{dest_name=$(NF-2)("_") $(NF); system("ln -s " $0 " "dest_name)}' ${RUN_DIR}/liste_debug_files.txt |
---|
| 289 | |
---|
[606] | 290 | # Add out_ : output of execution files |
---|
| 291 | find ${R_BUFR}/Out -type f -name '*out_*' | sort >> ${RUN_DIR}/liste_out_files.txt |
---|
| 292 | |
---|
[609] | 293 | # Rename out files we will work with using symlinks. use Out_ prefix ie NF-1 |
---|
[606] | 294 | gawk -F/ '{dest_name=$(NF-1)("_") $(NF); system("ln -s " $0 " "dest_name)}' ${RUN_DIR}/liste_out_files.txt |
---|
| 295 | |
---|
[614] | 296 | # List renamed debug files. Exclude Job_xxx files. |
---|
| 297 | find ${RUN_DIR} -name "???_*${JobName}*" -ls | grep -v Job_ | sort -k 11 > ${RUN_DIR}/new_liste_debug_files.txt |
---|
[547] | 298 | |
---|
| 299 | # ------------------------------------------------------------------ |
---|
| 300 | # Test if all was right before proceeding further |
---|
| 301 | # ------------------------------------------------------------------ |
---|
| 302 | IGCM_debug_Verif_Exit_Post |
---|
| 303 | |
---|
[565] | 304 | # Init loop |
---|
| 305 | date_begin_pack=${DateBegin} |
---|
| 306 | date_end_simulation=${DateEnd} |
---|
[547] | 307 | number_pack=1 |
---|
| 308 | |
---|
| 309 | IGCM_debug_PrintVariables 3 date_begin_pack |
---|
| 310 | IGCM_debug_PrintVariables 3 date_end_simulation |
---|
| 311 | |
---|
| 312 | while [ ${date_begin_pack} -le ${date_end_simulation} ] ; do |
---|
| 313 | |
---|
| 314 | IGCM_debug_PrintVariables 3 number_pack |
---|
| 315 | |
---|
[592] | 316 | DaysTemp=$( IGCM_date_DaysInCurrentPeriod ${date_begin_pack} ${PeriodPack} ) |
---|
| 317 | date_end_pack=$( IGCM_date_AddDaysToGregorianDate ${date_begin_pack} $(( ${DaysTemp} - 1 )) ) |
---|
[547] | 318 | |
---|
[565] | 319 | for file in $( gawk '{print $11}' ${RUN_DIR}/new_liste_debug_files.txt ); do |
---|
[547] | 320 | extract_date_file=$( echo ${file} | sed -e "s/.*${JobName}_[0-9]*_//" ) |
---|
| 321 | date_file=$( echo ${extract_date_file} | sed 's/\([0-9]\{8\}\)_.*$/\1/g' ) |
---|
[592] | 322 | # echo pack n°${number_pack} ${date_file} ${date_begin_pack} ${date_end_pack} |
---|
| 323 | if [ ${date_file} -le ${date_end_pack} ] && [ ${date_file} -ge ${date_begin_pack} ] ; then |
---|
[547] | 324 | echo $( basename ${file} ) >> ${RUN_DIR}/liste_pack_${number_pack}.txt |
---|
[592] | 325 | echo $( readlink ${file} ) >> ${RUN_DIR}/liste_remove_pack_${number_pack}.txt |
---|
[554] | 326 | # Will not work. Need to find a better ordering. |
---|
[547] | 327 | # elif [ ${date_file} -ge ${date_end_pack} ] ; then |
---|
| 328 | # break |
---|
| 329 | fi |
---|
| 330 | done |
---|
| 331 | |
---|
[565] | 332 | # Create tar files |
---|
| 333 | IGCM_debug_Print 1 "Tar ongoing" |
---|
| 334 | tar -cvf ${JobName}_${date_begin_pack}_${date_end_pack}_debug.tar --dereference --files-from ${RUN_DIR}/liste_pack_${number_pack}.txt |
---|
| 335 | # Save it |
---|
| 336 | IGCM_sys_Put_Out ${JobName}_${date_begin_pack}_${date_end_pack}_debug.tar ${STORE_DEBUG} |
---|
| 337 | # Clean it |
---|
| 338 | IGCM_sys_Rm ${JobName}_${date_begin_pack}_${date_end_pack}_debug.tar |
---|
| 339 | # Clean links |
---|
| 340 | cat ${RUN_DIR}/liste_pack_${number_pack}.txt | xargs rm |
---|
| 341 | # Clean files links pointed to |
---|
| 342 | cat ${RUN_DIR}/liste_remove_pack_${number_pack}.txt | xargs rm |
---|
| 343 | # Save the list of files that has been pack (tar) |
---|
[547] | 344 | mv ${RUN_DIR}/liste_pack_${number_pack}.txt ${STORE_DEBUG} |
---|
[565] | 345 | IGCM_debug_Print 1 "Tar and cleaning done" |
---|
[547] | 346 | |
---|
| 347 | (( number_pack = number_pack + 1 )) |
---|
| 348 | |
---|
[565] | 349 | # Add 1 day to date_end_pack to have the new date_begin_pack |
---|
[571] | 350 | date_begin_pack=$( IGCM_date_AddDaysToGregorianDate ${date_end_pack} 1 ) |
---|
[565] | 351 | |
---|
[547] | 352 | done |
---|
[592] | 353 | |
---|
| 354 | # Clean RUN_DIR_PATH (necessary for cesium and titane only) |
---|
| 355 | IGCM_sys_RmRunDir -Rf ${RUN_DIR_PATH} |
---|
| 356 | |
---|
| 357 | date |
---|