Ignore:
Timestamp:
07/19/12 16:02:21 (12 years ago)
Author:
aclsce
Message:

Modifications done by Guillaume P :

  • error handling for the whole script
  • check of nco version
  • restart tool for list script
  • progress visualization for both scripts
  • "force" option -f added for both scripts
  • timing information added for pack script
File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/PACK_IPSL/write_liste_pack.sh

    r1769 r1822  
    2828SCRIPT_NAME=$(basename ${0} ) 
    2929source ${EXE_DIR}/DEM_utilities.sh 
     30 
     31# gpdebug : verif si le present script a ete execute jusqu'au bout ######### 
     32MonitoringInfo="${SCRIPT_NAME}-->OK" 
     33simuMonitoring_check "$MonitoringInfo" "$config_card" 
     34 
     35# gpdebug : Execute la function errorReceive() si reception d'un signal TERM 
     36trap 'DEM_errorReceive' TERM ######## 
     37 
     38# gpdebug : on augmente la liste des proc à détruire en cas d'erreur bloquante du présent proc 
     39export listPID="$$ ${listPID}" ######### 
     40 
    3041DEM_log -0 "Demmarrage de ${SCRIPT_NAME}" 
    3142cd ${JOB_DIR} 
     
    4354SIMUL=${PATH_SIMUL_FULL}/${JobName} 
    4455 
     56 
    4557DEM_state=$( DEM_read_state ${IGCM_DEM}/config_card.liste ${config_card} ) 
    46 if [[ "${DEM_state}" != "FindSizePackDone" ]] ; then 
    47     DEM_log -0 "Attention : Etat incorrect dans ${IGCM_DEM}/config_card.liste" 
    48     exit -1 
     58# gpdebug : si c'est une premiere exec (pas une reprise) 
     59if [[ "x${execEveryStep}" == "1" ]] && [[ "${DEM_state}" != "FindSizePackDone" ]] ; then 
     60    DEM_errorSend "${SCRIPT_NAME}:${LINENO}:Etat incorrect dans ${IGCM_DEM}/config_card.liste" 
    4961fi 
     62 
    5063 
    5164DEM_write_state ${IGCM_DEM}/config_card.liste ${config_card} WriteListPackRunning 
     
    244257DEM_write_state ${IGCM_DEM}/config_card.liste ${config_card} WriteListPackDone 
    245258 
     259# gpdebug : le script n'a pas rencontre d'erreur. On l'inscrit dans le fichier de suivi 
     260simuMonitoring_OK "$MonitoringInfo" "$config_card" 
     261 
    246262DEM_log -0 "Fin de ${SCRIPT_NAME}" 
    247263 
Note: See TracChangeset for help on using the changeset viewer.