Changeset 2022 for TOOLS


Ignore:
Timestamp:
03/08/13 00:14:22 (11 years ago)
Author:
aclsce
Message:

Added check if file exist to fix small bug.

Location:
TOOLS/PACK_IPSL
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/PACK_IPSL/archive_debug.sh

    r1979 r2022  
    160160#On classe par ordre alphabetique les fichiers contenus dans liste_pack_debug  
    161161#la date du dernier fichier donnera la date de fin du pack 
     162  if [[ -f ${IGCM_TMP}/${$}.liste_pack_debug_${number_pack}.txt ]] ; then 
    162163   sort ${IGCM_TMP}/${$}.liste_pack_debug_${number_pack}.txt > ${IGCM_TMP}/${$}.liste_pack_debug_${number_pack}.txt.tmp 
    163164 
     
    170171   DateEnd_Debug=$(   echo ${extract_date_file}| sed 's%.*\([0-9]\{8\}\)_.*$%\1%g' ) 
    171172   mv ${IGCM_TMP}/${$}.liste_pack_debug_${number_pack}.txt.tmp ${DEBUG_TAR}/${JobName}_debug_${DateBegin_Debug}_${DateEnd_Debug}.list 
    172  
     173  fi 
    173174 
    174175DEM_log -1 "Passage de la commande Tar pour archiver la liste creee" 
  • TOOLS/PACK_IPSL/archive_restart.sh

    r1962 r2022  
    7878rm -rf * 
    7979fi 
    80  
    8180# On les copie sur le scratchdir en changeant le nom et conservant la date 
    8281awk '{print $2}' ${IGCM_DEM_SIMU}/liste_restart_files_config.txt > ${IGCM_TMP}/${$}.liste_restart_files.txt 
     
    108107 
    109108number_pack=1 
    110  
    111109while [ ${date_begin_pack} -le ${date_end_simulation} ] 
    112110do  
     
    158156#On classe par ordre alphabetique les fichiers contenus dans liste_pack_restart  
    159157#la date du dernier fichier donnera la date de fin du pack 
     158  if [[ -f ${IGCM_TMP}/${$}.liste_pack_restart_${number_pack}.txt ]] ; then 
    160159   sort ${IGCM_TMP}/${$}.liste_pack_restart_${number_pack}.txt > ${IGCM_TMP}/${$}.liste_pack_restart_${number_pack}.txt.tmp 
    161160 
     
    168167   DateEnd_Restart=$(   echo ${extract_date_file}| sed 's/\([0-9]\{8\}\)_.*$/\1/g' ) 
    169168   mv ${IGCM_TMP}/${$}.liste_pack_restart_${number_pack}.txt.tmp ${RESTART_TAR}/${JobName}_restart_${DateBegin_Restart}_${DateEnd_Restart}.list 
    170  
     169  fi 
    171170 
    172171DEM_log -1 "Passage de la commande Tar pour archiver la liste creee" 
     
    186185done 
    187186 
    188  
    189187cd ${EXE_DIR} 
    190188 
Note: See TracChangeset for help on using the changeset viewer.