Changeset 765 for trunk


Ignore:
Timestamp:
12/21/12 09:37:49 (11 years ago)
Author:
mafoipsl
Message:
  • Consolidation of AA_pack_debug and AA_pack_restart : don't delete pre-packed files if Put_Out doesn't work.
  • On curie : add information about file before Put_Out.
  • Change comments into libIGCM_debug. Thanks to Masa :-)
Location:
trunk/libIGCM
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/AA_pack_debug

    r758 r765  
    330330  # Clean it 
    331331  IGCM_sys_Rm ${JobName}_${date_begin_pack}_${date_end_pack}_debug.tar 
     332  # ------------------------------------------------------------------ 
     333  # Test if all was right before proceeding cleaning 
     334  # ------------------------------------------------------------------ 
     335  IGCM_debug_Verif_Exit_Post 
    332336  # Clean links 
    333337  cat ${RUN_DIR}/liste_pack_${date_begin_pack}_${date_end_pack}.txt | xargs rm 
  • trunk/libIGCM/AA_pack_restart

    r758 r765  
    327327  # Clean it 
    328328  IGCM_sys_Rm ${JobName}_${date_begin_pack}_${date_end_pack}_restart.tar 
     329  # ------------------------------------------------------------------ 
     330  # Test if all was right before proceeding cleaning 
     331  # ------------------------------------------------------------------ 
     332  IGCM_debug_Verif_Exit_Post 
    329333  # Clean links 
    330334  cat ${RUN_DIR}/liste_pack_${date_begin_pack}_${date_end_pack}.txt | xargs rm 
  • trunk/libIGCM/libIGCM_debug/libIGCM_debug.ksh

    r734 r765  
    197197    # Plan to send an email here with IGCM_sys_SendMail 
    198198    IGCM_card_WriteOption ${SUBMIT_DIR}/run.card Configuration PeriodState "Fatal" 
    199     echo "IGCM_debug_Verif_Exit : Something wrong append." 
     199    echo "IGCM_debug_Verif_Exit : Something wrong happened." 
    200200    echo "                        EXIT THE JOB." 
    201201    echo 
     
    220220function IGCM_debug_Verif_Exit_Post { 
    221221  if ( ${ExitFlag} ) ; then 
    222     echo "IGCM_debug_Verif_Exit_Post : Something wrong append." 
     222    echo "IGCM_debug_Verif_Exit_Post : Something wrong happened." 
    223223    # If SpaceName is PROD then we stop if post_processing fails 
    224224    # Plan to send an email here with IGCM_sys_SendMail 
     
    237237    else 
    238238      echo "Either inside config.card the variable SpaceName is not in PROD" 
    239       echo "or insinde the main Job the variable JobType is not in RUN mode" 
     239      echo "or inside the main Job the variable JobType is not in RUN mode" 
    240240      echo "              SO WE DO NOT EXIT THE JOB." 
    241241      echo 
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_curie.ksh

    r759 r765  
    11681168    if [ ${status} -gt 0 ] ; then 
    11691169      echo "IGCM_sys_Put_Rest : cp failed error code ${status}" 
     1170      [ -f ${1} ] && ls -l ${1} 
    11701171      [ -f ${2} ] && ls -l ${2} 
    11711172      [ -f ${2}/${1} ] && ls -l ${2}/${1} 
     
    13021303          IGCM_debug_Print 2 "IGCM_sys_Put_Out : cp failed error code ${status} ${i}/${NB_ESSAI}" 
    13031304          IGCM_debug_Print 2 "IGCM_sys_Put_Out : sleep ${DELAI} seconds and try again." 
     1305          [ -f ${1} ] && ls -l ${1} 
    13041306          [ -f ${2} ] && ls -l ${2} 
    13051307          [ -f ${2}/${1} ] && ls -l ${2}/${1} 
     
    13281330    if [ ${status} -gt 0 ] ; then 
    13291331      echo "IGCM_sys_Put_Out : error." 
     1332      [ -f ${1} ] && ls -l ${1} 
    13301333      [ -f ${2} ] && ls -l ${2} 
    13311334      [ -f ${2}/${1} ] && ls -l ${2}/${1} 
Note: See TracChangeset for help on using the changeset viewer.