Ignore:
Timestamp:
05/11/12 10:08:39 (12 years ago)
Author:
acosce
Message:

If a simulation has a size less than 1Go we tar it

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/PACK_IPSL/launch_ipsl_pack.sh

    r1713 r1714  
    6868for CONFIG in $( awk '{print $1}' ${IGCM_DEM}/config_card.liste ) ; do  
    6969     
    70     DEM_log ${CONFIG} 
     70    DEM_log -2 ${CONFIG} 
    7171 
    7272    eval $(grep IGCM_DEM_SIMU ${CONFIG}) 
    7373    ${EXE_DIR}/calcul_size_simul.sh ${CONFIG} ${LISTE_DMNFS} 
    7474 
    75     if [ ! -f ${IGCM_DEM_SIMU}/tar_full_simul.txt ] 
    76     then  
    77         echo "la simulation est superieur a 1Go alors on pack" 
     75    DEM_state=$( DEM_read_state ${IGCM_DEM}/config_card.liste ${CONFIG} ) 
     76    if [[ "${DEM_state}" != "WriteListTarDone" ]] ; then 
     77 
     78        DEM_log -3  "la simulation est superieur a 1Go alors on pack" 
    7879        ${EXE_DIR}/find_size_pack.sh   ${CONFIG} ${LISTE_DMNFS} 
    7980        ${EXE_DIR}/write_liste_pack.sh ${CONFIG} ${LISTE_DMNFS} 
    8081#       ${EXE_DIR}/archive_restart.sh ${CONFIG} ${LISTE_DMNFS} 
     82 
    8183    fi 
    8284done 
Note: See TracChangeset for help on using the changeset viewer.