Ignore:
Timestamp:
03/22/12 18:02:50 (12 years ago)
Author:
mafoipsl
Message:

Second merge of libIGCM_MPI_OpenMP branch with libIGCM trunk, revision 591.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/libIGCM_MPI_OpenMP/AA_pack_debug

    r571 r592  
    33#-Q- cesium ## CESIUM   CEA ## 
    44#-Q- cesium ###################### 
    5 #-Q- cesium #MSUB -r PACKDEBUG    # Nom du job                 
     5#-Q- cesium #MSUB -r PACKDEBUG    # Nom du job 
    66#-Q- cesium #MSUB -N 1              # Reservation du noeud 
    77#-Q- cesium #MSUB -n 1              # Reservation du processus 
     
    2727#-Q- sx8brodie # Nom du travail LoadLeveler 
    2828#-Q- sx8brodie # @ job_name   = PACKDEBUG 
    29 #-Q- sx8brodie # Fichier de sortie standard du travail        
     29#-Q- sx8brodie # Fichier de sortie standard du travail 
    3030#-Q- sx8brodie # @ output     = $(job_name).$(jobid) 
    3131#-Q- sx8brodie # Fichier de sortie d'erreur du travail 
     
    8181#-Q- sx9mercure ## CESIUM   CEA ## 
    8282#-Q- sx9mercure ###################### 
    83 #-Q- sx9mercure #MSUB -r PACKDEBUG    # Nom du job                 
     83#-Q- sx9mercure #MSUB -r PACKDEBUG    # Nom du job 
    8484#-Q- sx9mercure #MSUB -N 1              # Reservation du noeud 
    8585#-Q- sx9mercure #MSUB -n 1              # Reservation du processus 
     
    9191#-Q- titane ## TITANE   CEA     ## 
    9292#-Q- titane ###################### 
    93 #-Q- titane #MSUB -r PACKDEBUG    # Nom du job                 
     93#-Q- titane #MSUB -r PACKDEBUG    # Nom du job 
    9494#-Q- titane #MSUB -eo 
    9595#-Q- titane #MSUB -n 1              # Reservation du processus 
     
    178178#RESTART/ATM_****.nc 
    179179#RESTART/OCE_****.nc 
    180 #Attention de bien conserver les dates d'origines  
     180#Attention de bien conserver les dates d'origines 
    181181# 
    182182#Dans le cadre de la production nouvelle chaine 
    183183#ils auront directement le bon nom 
    184184# 
    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_SIMUL 
     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 
    191191# $2=PeriodPack en M/m ou Y/y 
    192192 
     
    223223fi 
    224224 
    225 # 
     225#==================================================== 
    226226# First of all 
    227227# 
    228 #### 0- lecture de config.card  
    229 #### on veut les renseignements suivants :  
    230 #### JobName, PATH_SIMUL, DateBegin et DateEnd 
    231  
     228# Read config.card 
    232229IGCM_card_DefineArrayFromSection     ${CARD_DIR}/config.card UserChoices 
    233230typeset option 
     
    250247 
    251248#==================================================== 
    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 
    254253 
    255254if ( [ ! X${config_UserChoices_SpaceName} = X ] && [ ! X${config_UserChoices_ExperimentName} = X ] ) ; then 
     
    264263[ $? != 0 ] && IGCM_debug_Exit "IGCM_sys_TestDirArchive" 
    265264 
    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 
    269266STORE_DEBUG=${R_SAVE}/DEBUG 
    270267IGCM_sys_MkdirArchive ${STORE_DEBUG} 
    271268 
     269#cd ${STORE_DEBUG} 
     270#rm -f * 
     271 
    272272# Switch to script variables meaning (try to be compatible with ipsl_pack TGCC moving procedure) 
    273273JobName=${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 
     274echo $JobName $DateBegin $DateEnd 
     275 
    282276# Clear txt file lists 
    283277rm -f ${RUN_DIR}/liste_debug_files.txt 
     
    286280 
    287281# Create sorted debug list to work with 
    288 find ${PATH_SIMUL}/*/Debug -type f | sort >> ${RUN_DIR}/liste_debug_files.txt 
     282find ${R_BUFR}/*/Debug -type f | sort >> ${RUN_DIR}/liste_debug_files.txt 
    289283 
    290284# Rename debug files we will work with using symlinks 
     
    312306  IGCM_debug_PrintVariables 3 number_pack 
    313307 
    314   DaysTemp=$( IGCM_date_DaysInNextPeriod ${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 )) ) 
    316310 
    317311  for file in $( gawk '{print $11}' ${RUN_DIR}/new_liste_debug_files.txt ); do 
    318312    extract_date_file=$( echo ${file}  | sed -e "s/.*${JobName}_[0-9]*_//" ) 
    319313    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} -lt ${date_end_pack} ] && [ ${date_file} -ge ${date_begin_pack} ] ; then  
     314#   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 
    322316        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 
    325318#    Will not work. Need to find a better ordering. 
    326319#    elif [ ${date_file} -ge ${date_end_pack} ] ; then 
     
    350343 
    351344done 
     345 
     346# Clean RUN_DIR_PATH (necessary for cesium and titane only) 
     347IGCM_sys_RmRunDir -Rf ${RUN_DIR_PATH} 
     348 
     349date 
Note: See TracChangeset for help on using the changeset viewer.