Ignore:
Timestamp:
11/22/10 12:44:59 (14 years ago)
Author:
sdipsl
Message:
  • function IGCM_sys_Get_Master on cesium will try 10 times to scp files from master machine. Hopefully the last cesium consolidation
  • function IGCM_config_Check will check chunck2D/3D consistency with TimeSeriesFrequency?.
  • change the way the output from post-processing script was named. We will now have:

-rebuild_fromWorkdir.20051231.out
-create_ts.20051231.2D.out
-create_ts.20051231.3D.out
-atlas_PISCES.19991231.out
-create_ts.20051231.Chunck2D.ATM.POST_1D_histday.out
-create_ts.20051231.Chunck2D.OCE.POST_1D_grid_T.out

  • remove modipsl headers from AA_SE_Checker, AA_TimeSeries_Checker, AA_move-and-rename
    • they check and submit job. They do not use resources and so there is no point to submit them
    • they will be rename shortly SE_Checker.ksh, TimeSeries_Checker.ksh, move-and-rename.ksh
  • cosmetics
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libIGCM/libIGCM_sys/libIGCM_sys_cesium.ksh

    r377 r387  
    519519        echo "IGCM_sys_QsubPost :" $@ 
    520520    fi 
    521     /usr/local/bin/ccc_msub -o ${POST_DIR}/$1.${PeriodDateEnd}.${TsTask}.${CompToRead}.${FlagToRead}.out -e ${POST_DIR}/$1.${PeriodDateEnd}.${TsTask}.${CompToRead}.${FlagToRead}.e.out -E "-v ${listVarEnv}" ${libIGCM}/$1.job 
     521    /usr/local/bin/ccc_msub -o ${POST_DIR}/${Script_Post_Output}.out -e ${POST_DIR}/${Script_Post_Output}.e.out -E "-v ${listVarEnv}" ${libIGCM}/$1.job 
    522522    if [ $? -gt 0 ] ; then 
    523523        echo "IGCM_sys_QsubPost : erreur " $@ 
     
    849849    fi 
    850850    if [ $DRYRUN = 0 ]; then 
     851 
     852        typeset TEST NB_ESSAI DELAI status i 
     853         
    851854        TEST=$( IGCM_sys_RshMaster [ -d $1 ] && echo 1 || echo 0 ) 
    852855        if [ ${TEST} -ne 1 ] ; then 
     
    856859        fi 
    857860 
    858         typeset RET 
    859         sleep 60 
    860  
    861         #USUAL WAY 
    862         scp -r ${MASTER}:$1 $2 > out_rsync 2>&1 
    863         RET=$? 
    864  
    865         if [ ${RET} -gt 0 ] ; then 
     861        # number of tentative 
     862        NB_ESSAI=10 
     863        # time delay between tentative 
     864        DELAI=30 
     865        # 
     866        sleep ${DELAI} 
     867        (( i = 0 )) 
     868        while [ $i -lt $NB_ESSAI ] ; do 
     869            #USUAL WAY 
     870            scp -r ${MASTER}:$1 $2 > out_rsync 2>&1 
     871            status=$? 
     872            if [ ${status} -gt 0 ]; then 
     873                IGCM_debug_Print 2 "IGCM_sys_Get_Master : scp failed ${i}/${NB_ESSAI}" 
     874                IGCM_debug_Print 2 "IGCM_sys_Get_Master : sleep ${DELAI} seconds and try again." 
     875                sleep $DELAI 
     876            else 
     877                break 
     878            fi 
     879            (( i = i + 1 )) 
     880        done 
     881 
     882        if [ ${status} -gt 0 ] ; then 
    866883            echo "IGCM_sys_Get_Master : error." 
    867884            cat out_rsync 
Note: See TracChangeset for help on using the changeset viewer.