Changeset 1728 for TOOLS


Ignore:
Timestamp:
05/16/12 15:58:23 (13 years ago)
Author:
acosce
Message:
  • add creation of debug list
  • standardization of lists name
Location:
TOOLS/PACK_IPSL
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/PACK_IPSL/archive_restart.sh

    r1709 r1728  
    5454 
    5555#### Preparation de l'environnement 
    56 # repertoire dans lequel seront crees les archives 
    57 STORE_RESTART=$IGCM_DEM_SIMU/Restart 
     56# repertoire dans lequel seront renommes les fichiers de restart 
     57STORE_RESTART=$IGCM_DEM_SIMU/RESTART 
    5858mkdir -p ${STORE_RESTART} 
     59 
     60# repertoire dans lequel nous stockerons les listes de restart a archiver 
     61RESTART_TAR=$IGCM_DEM_SIMU/restart_tar 
     62mkdir -p ${RESTART_TAR} 
    5963 
    6064# lecture de periodpack dans ${IGCM_DEM_SIMU}/period_pack.txt 
     
    123127 
    124128 
    125      echo pack n°${number_pack}  ${date_file} ${date_begin_pack} ${date_end_pack}  
    126129     if [  ${date_file} -lt ${date_end_pack} ] 
    127130     then  
     
    142145   last_file=$(tail -n 1 ${IGCM_TMP}/${$}.liste_pack_restart_${number_pack}.txt.tmp ) 
    143146   extract_date_file=$( echo ${last_file}  | sed -e "s/.*${JobName}_//" ) 
    144    echo ${extract_date_file} 
    145147   DateEnd_Restart=$(   echo ${extract_date_file}| sed 's/\([0-9]\{8\}\)_.*$/\1/g' ) 
    146    echo ${DateEnd_Restart} 
    147    mv ${IGCM_TMP}/${$}.liste_pack_restart_${number_pack}.txt.tmp ${IGCM_DEM_SIMU}/liste_pack_restart_${date_begin_pack}_${DateEnd_Restart}.txt 
     148   mv ${IGCM_TMP}/${$}.liste_pack_restart_${number_pack}.txt.tmp ${RESTART_TAR}/tar_restart_${date_begin_pack}_${DateEnd_Restart}.list 
    148149 
    149150 
    150151DEM_log -1 "Passage de la commande Tar pour archiver la liste creee" 
    151    tar -cf ${JobName}_${date_begin_pack}_${DateEnd_Restart}_restart.tar --dereference  --files-from ${IGCM_DEM_SIMU}/liste_pack_restart_${date_begin_pack}_${DateEnd_Restart}.txt 
    152 #   cat  ${IGCM_DEM_SIMU}/liste_pack_restart_${number_pack}.txt | xargs rm  
     152#   tar -cf ${JobName}_${date_begin_pack}_${DateEnd_Restart}_restart.tar --dereference  --files-from ${RESTART_TAR}/tar_restart_${date_begin_pack}_${DateEnd_Restart}.list 
     153#   cat  ${RESTART_TAR}/tar_restart_${number_pack}.list | xargs rm  
    153154 
    154155 
     
    173174 
    174175 
    175  
     176cd ${EXE_DIR} 
  • TOOLS/PACK_IPSL/create_config_card.sh

    r1726 r1728  
    9999 
    100100    # Etablir la liste des fichiers d'Analyse 
    101     grep ${PATH_SIMUL_FULL}/ ${LISTE_DMNFS} | grep Analyse  | awk '{print $2 " "  $3}' |  sort >> ${STORE_CP}/liste_analyse_files.txt 
     101    grep ${PATH_SIMUL_FULL}/ ${LISTE_DMNFS} | grep Analyse  | awk '{print $2 " "  $3}' |  sort >> ${STORE_CP}/cp_analyse_files.list 
    102102 
    103103 
    104104    # Etablir la liste des fichiers Monito et Atlas 
    105     grep ${PATH_SIMUL_FULL}/ ${LISTE_DMNFS} | grep  MONITORING | awk '{print $2 " "  $3}' | sort >> ${WORK_CP}/liste_monito_files.txt 
    106     grep ${PATH_SIMUL_FULL}/ ${LISTE_DMNFS} | grep  ATLAS | awk '{print $2 " "  $3}' | sort >> ${WORK_CP}/liste_atlas_files.txt 
     105    grep ${PATH_SIMUL_FULL}/ ${LISTE_DMNFS} | grep  MONITORING | awk '{print $2 " "  $3}' | sort >> ${WORK_CP}/cp_monito_files.list 
     106    grep ${PATH_SIMUL_FULL}/ ${LISTE_DMNFS} | grep  ATLAS | awk '{print $2 " "  $3}' | sort >> ${WORK_CP}/cp_atlas_files.list 
    107107     
    108108 
     
    121121# Sauvegarde des fichiers qui ne sont pas dans la norme 
    122122    cat ${IGCM_TMP}/${$}.info_tmp_bis.txt >> ${IGCM_TMP}/${$}.liste_no_restart_files_config.txt 
    123     mv ${IGCM_TMP}/${$}.liste_no_restart_files_config.txt ${OTHER_TAR}/tar_no_restart_files.txt 
     123    mv ${IGCM_TMP}/${$}.liste_no_restart_files_config.txt ${OTHER_TAR}/tar_no_restart_files.list 
    124124 
    125125 
     
    131131# Sauvegarde des fichiers qui ne sont pas dans la norme 
    132132    cat ${IGCM_TMP}/${$}.info_tmp_bis.txt >> ${IGCM_TMP}/${$}.liste_no_output_files_config.txt 
    133     mv ${IGCM_TMP}/${$}.liste_no_output_files_config.txt ${OTHER_TAR}/tar_no_output_files.txt 
     133    mv ${IGCM_TMP}/${$}.liste_no_output_files_config.txt ${OTHER_TAR}/tar_no_output_files.list 
    134134 
    135135 
     
    187187 
    188188# si les listes no_output et no_restart sont vides on les efface 
    189 if [[ !  -s ${OTHER_TAR}/tar_no_output_files.txt ]]; then  
    190     rm -f ${OTHER_TAR}/tar_no_output_files.txt 
     189if [[ !  -s ${OTHER_TAR}/tar_no_output_files.list ]]; then  
     190    rm -f ${OTHER_TAR}/tar_no_output_files.list 
    191191fi  
    192192 
    193 if [[ !  -s ${OTHER_TAR}/tar_no_restart_files.txt ]]; then  
    194     rm -f ${OTHER_TAR}/tar_no_restart_files.txt 
     193if [[ !  -s ${OTHER_TAR}/tar_no_restart_files.list ]]; then  
     194    rm -f ${OTHER_TAR}/tar_no_restart_files.list 
    195195fi  
    196196 
  • TOOLS/PACK_IPSL/launch_ipsl_pack.sh

    r1727 r1728  
    7979        ${EXE_DIR}/find_size_pack.sh   ${CONFIG} ${LISTE_DMNFS} 
    8080        ${EXE_DIR}/write_liste_pack.sh ${CONFIG} ${LISTE_DMNFS} 
    81 #       ${EXE_DIR}/archive_restart.sh ${CONFIG} ${LISTE_DMNFS} 
     81        ${EXE_DIR}/archive_restart.sh ${CONFIG} ${LISTE_DMNFS} 
     82        ${EXE_DIR}/archive_debug.sh ${CONFIG} ${LISTE_DMNFS} 
    8283 
    8384    fi 
  • TOOLS/PACK_IPSL/write_liste_pack.sh

    r1726 r1728  
    5252 
    5353# creation des repertoires with_tar et with_ncrcat 
    54 OUTPUT_NCRCAT=${IGCM_DEM_SIMU}/with_ncrcat 
    55 OUTPUT_TAR=${IGCM_DEM_SIMU}/with_tar 
     54OUTPUT_NCRCAT=${IGCM_DEM_SIMU}/output_ncrcat 
     55OUTPUT_TAR=${IGCM_DEM_SIMU}/output_tar 
    5656 
    5757mkdir -p ${OUTPUT_NCRCAT} 
Note: See TracChangeset for help on using the changeset viewer.