Changeset 743


Ignore:
Timestamp:
09/25/09 10:42:11 (15 years ago)
Author:
mafoipsl
Message:

Delete all Bands files in PARAM directory. Add in lmdz.driver everything concerning Bands. Add in lmdz.card LMDZ_NbPeriod_adjust parameter.

Location:
CONFIG/IPSLCM/IPSLCM5/branches/IPSLCM5_v2/EXP00
Files:
13 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/IPSLCM/IPSLCM5/branches/IPSLCM5_v2/EXP00/COMP/lmdz.card

    r716 r743  
    55ByPass_hgardfou_teta=n 
    66ByPass_hgardfou_mats=n 
    7 LMDZ_adjust=n 
     7LMDZ_NbPeriod_adjust=3 
    88 
    99[InitialStateFiles] 
     
    4747        (${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM_3D},    gcm.def),    \ 
    4848        (${SUBMIT_DIR}/PARAM/run.def, .), \ 
    49         (${SUBMIT_DIR}/PARAM/traceur.def, .), \ 
    50         (${SUBMIT_DIR}/PARAM/Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat, .) 
     49        (${SUBMIT_DIR}/PARAM/traceur.def, .) 
    5150 
    5251[RestartFiles] 
  • CONFIG/IPSLCM/IPSLCM5/branches/IPSLCM5_v2/EXP00/COMP/lmdz.driver

    r697 r743  
    5656    PAT_day_step=$(  grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM_3D} | grep day_step ) 
    5757 
    58     ## Read LMDZ_adjust option in ${compname}.card --> put adjust=y and save Bands_*.dat in ${SUBMIT_DIR}/PARAM 
    59     IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices LMDZ_adjust 
    60     eval LMDZ_adjust=\${${compname}_UserChoices_LMDZ_adjust} > /dev/null 2>&1 
     58    ## Read LMDZ_NbPeriod_adjust option in ${compname}.card  
     59    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices LMDZ_NbPeriod_adjust 
     60    eval LMDZ_NbPeriod_adjust=\${${compname}_UserChoices_LMDZ_NbPeriod_adjust} > /dev/null 2>&1 
     61     
     62    ## algo : CumulPeriod=1 ; LMDZ_adjust=y ; save Bands file on file server ; 
     63    ##        For CumulPeriod=2 to LMDZ_NbPeriod_adjust ; Fetch Bands file from server (CumulPeriod-1) ; LMDZ_adjust=y ; save Bands file on file server ; 
     64    ##        For CumulPeriod > LMDZ_NbPeriod_adjust ; LMDZ_adjust=n ; Fetch Bands file from server (CumulPeriod=LMDZ_NbPeriod_adjust) ; Use Bands ; 
    6165 
    6266    ##-- This could be define in lmdz.card, inside section [UserChoices] 
     
    6771    #(( day_step = 48 * iphysiq )) 
    6872    day_step=$( echo ${PAT_day_step} | awk -F= '{print $2}' ) 
    69  
    70     #[ -f ${SUBMIT_DIR}/PARAM/Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat ] && IGCM_sys_Cp ${SUBMIT_DIR}/PARAM/Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat . 
    7173 
    7274    IGCM_debug_PopStack "ATM_Initialize" 
     
    8890        RAZ_DATE=0 
    8991    fi 
     92 
     93    LMDZ_adjust=n 
     94    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && LMDZ_adjust=y 
     95 
     96    RefPeriod=${LMDZ_NbPeriod_adjust} 
     97    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && (( RefPeriod = ${CumulPeriod} - 1 )) 
     98 
     99    [ ${CumulPeriod} -gt 1 ] && IGCM_sys_Get ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat_${RefPeriod} Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat 
    90100 
    91101    ## Mise en forme du fichier physiq.def 
     
    169179    IGCM_debug_PushStack "ATM_Finalize" 
    170180 
    171     [ ${LMDZ_adjust} = y ] && IGCM_sys_Cp Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat ${SUBMIT_DIR}/PARAM 
     181    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && IGCM_sys_Put_Out Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat ${R_OUT_ATM_D}/${config_UserChoices_JobName}_Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat_${CumulPeriod} 
    172182 
    173183    echo FINALIZE ATM ! 
Note: See TracChangeset for help on using the changeset viewer.