Ignore:
Timestamp:
03/29/12 10:56:09 (12 years ago)
Author:
sdipsl
Message:
  • Merge libIGCM_MPI_OpenMP branch within the trunk
  • trunk will shortly be tagged libIGCM_2.0_beta
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_pack_restart

    r590 r616  
    7979#-Q- sx9mercure #!/bin/ksh 
    8080#-Q- sx9mercure ###################### 
    81 #-Q- sx9mercure ## CESIUM   CEA ## 
     81#-Q- sx9mercure ## SX9MERCURE  CCRT ## 
    8282#-Q- sx9mercure ###################### 
    83 #-Q- sx9mercure #MSUB -r PACKRESTART    # Nom du job 
    84 #-Q- sx9mercure #MSUB -N 1              # Reservation du noeud 
    85 #-Q- sx9mercure #MSUB -n 1              # Reservation du processus 
    86 #-Q- sx9mercure #MSUB -T 86400          # Limite de temps elapsed du job 
    87 #-Q- sx9mercure #MSUB -E "-j o" 
    88 #-Q- sx9mercure #MSUB -E "-S /bin/ksh" 
     83#-Q- sx9mercure #PBS -N PACKRESTART          # 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 
     87#-Q- sx9mercure #PBS -l elapstim_req=24:00:00  # Limite temps a 1 heures 
     88#-Q- sx9mercure #PBS -q scalaire 
    8989#-Q- titane #!/bin/ksh 
    9090#-Q- titane ###################### 
     
    303303IGCM_debug_PrintVariables 3 date_end_simulation 
    304304 
     305# last restart of the previous period : to be deleted 
     306typeset date_end_previous 
     307date_end_previous=$( IGCM_date_AddDaysToGregorianDate ${date_begin_pack} -1 ) 
     308 
    305309while [ ${date_begin_pack} -le ${date_end_simulation} ] ; do 
    306310 
     
    313317    extract_date_file=$( echo ${file}  | sed -e "s/.*${JobName}_//" ) 
    314318    date_file=$( echo ${extract_date_file} | sed 's/\([0-9]\{8\}\)_.*$/\1/g' ) 
    315 #   echo pack n°${number_pack}  ${date_file} ${date_begin_pack} ${date_end_pack} 
     319#   warning demenagement. delete last restart of the previous pack 
     320    [  ${date_file} -eq ${date_end_previous} ] && echo $( readlink ${file} ) >> ${RUN_DIR}/liste_remove_pack_${number_pack}.txt 
     321#   echo pack number ${number_pack}  ${date_file} ${date_begin_pack} ${date_end_pack} 
    316322    if [ ${date_file} -le ${date_end_pack} ] && [ ${date_file} -ge ${date_begin_pack} ] ; then 
    317323      echo $( basename ${file} ) >> ${RUN_DIR}/liste_pack_${number_pack}.txt 
    318       echo $( readlink ${file} ) >> ${RUN_DIR}/liste_remove_pack_${number_pack}.txt 
     324#   warning demenagement. do not delete last restart of this pack 
     325      [ ${date_file} -eq ${date_end_pack} ] || echo $( readlink ${file} ) >> ${RUN_DIR}/liste_remove_pack_${number_pack}.txt 
    319326#   Will not work. Need to find a better ordering. 
    320327#   elif [ ${date_file} -ge ${date_end_pack} ] ; then 
Note: See TracChangeset for help on using the changeset viewer.