Changeset 1326


Ignore:
Timestamp:
03/01/11 16:17:00 (13 years ago)
Author:
mmaipsl
Message:

with Arnaud we have corrected some documentations and add SAVE directories
to protect original files from a script or system crash.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TOOLS/AA_stomate_flux_correction

    r1322 r1326  
    6666#-Q- ulam # @ environment  = $CURRENT_LOOP ; $imin ; $imax 
    6767#-Q- ulam # @ queue 
    68 #-Q- sx8mercure #!/bin/ksh 
    69 #-Q- sx9mercure ######################### 
    70 #-Q- sx9mercure ## CESIUM FOR SX9  CEA ## 
    71 #-Q- sx9mercure ######################### 
    72 #-Q- sx9mercure #MSUB -r SBGcorr             # Nom du job                 
    73 #-Q- sx9mercure #MSUB -N 1              # Reservation du noeud 
    74 #-Q- sx9mercure #MSUB -n 1              # Reservation du processus 
    75 #-Q- sx9mercure #MSUB -T 86400          # Limite de temps elapsed du job 
    76 #-Q- sx9mercure #MSUB -E "-j o" 
    77 #-Q- sx9mercure #MSUB -E "-S /bin/ksh" 
    7868#-Q- sx8mercure ###################### 
    7969#-Q- sx8mercure ## SX8MERCURE   CEA ## 
     
    135125# 
    136126#  This script is only used for correction of stomate_ipcc_history files created  
    137 # with orchidee_1_9_5 version of ORCHIDEE model checkouted before 01/0    
     127# with orchidee_1_9_5 version of ORCHIDEE model checkouted before 05/08/10 :    
    138128# Version of ORCHIDEE/src_stomate/stomate_lpj.f90 before CVS 1.26 had a bug 
    139129# that give a wrong Land Cover Change (fLuc) variable and a wrong nbp balance variable. 
     
    141131# You must read 'Documentation' paragraph below to parameter the chain of jobs for  
    142132# specific schedulers. 
     133# 
     134# To protect IPCC history files if this script crash, we first move original files  
     135# in SAVE_${loopmmin} directories.  
     136# YOU have to destroy them by hand after corrected all your run. 
     137# 
    143138# This script must only be used in a libIGCM directory 
    144139#     (but submit from a CONFIG directory). 
     140# 
    145141# Default parameters in this job are given for mercure CCRT X64 frontend.   
    146142# 
     
    311307 
    312308    echo "###############################################################" 
    313     echo "LOOP : " ${CURRENT_LOOP} 
     309    echo "CURRENT_LOOP : " ${CURRENT_LOOP} 
    314310    echo "imin/imax : " $imin " / " $imax 
    315311     
     
    353349 
    354350    # chmod sur dépÃŽt 
    355     IGCM_sys_RshArchive "chmod u+w ${liste_file_ipcc[@]}" 
     351    IGCM_sys_RshArchive "mkdir ${file_path}/SAVE_${imin}" 
     352    IGCM_sys_RshArchive "mv ${liste_file_ipcc[@]} ${file_path}/SAVE_${imin}" 
    356353 
    357354    # Faire le nco/ncap2 
     
    405402    else 
    406403        if [ ${CURRENT_LOOP} -eq ${NBRE_TOUR} ] ; then 
    407             echo "Dernier tour : " 
     404            echo "Last loop : " 
    408405            if [ ${NBRE_FILE_TOT}%${UNIX_MAX_LIMIT} -eq 0 ] ; then 
    409                 echo "imin NEW = " ${imax} 
    410406                (( imax = imax + ${NbFilesLOOP} )) 
    411                 echo "imax NEW = " ${imax} 
    412407            else 
    413                 echo "imin NEW = " ${imax} 
    414408                (( imax = imax + ( NBRE_FILE_TOT % UNIX_MAX_LIMIT ) / 2 )) 
    415                 echo "imax NEW = " ${imax} 
    416409            fi 
    417410        fi 
    418411    fi 
     412    echo "imin NEW = " ${imin} 
     413    echo "imax NEW = " ${imax} 
     414    echo "CURRENT_LOOP = " ${CURRENT_LOOP} 
     415 
    419416    if ( [ ${CURRENT_LOOP} -le ${NBRE_TOUR} ] && \ 
    420417         [ ${CURRENT_LOOP0} -gt ${LOOP_MAX} ] ) ; then 
Note: See TracChangeset for help on using the changeset viewer.