Changeset 815 for CONFIG


Ignore:
Timestamp:
11/26/09 12:37:06 (15 years ago)
Author:
mafoipsl
Message:

Add the possibility for LMDZ to use a Band file coming from a previous run.

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

Legend:

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

    r808 r815  
    66ByPass_hgardfou_mats=n 
    77LMDZ_NbPeriod_adjust=3 
     8# LMDZ_NbPeriod_adjust=0 
     9# To force usage of this Bands file, put LMDZ_NbPeriod_adjust=0 and replace XXXXXXX by Restart Job Name 
     10# LMDZ_Bands_file_name=${ARCHIVE}/IGCM_OUT/IPSLCM5/XXXXXXX/ATM/Debug/XXXXXXX_Bands_96x95x19_3prc.dat_3 
    811 
    912[InitialStateFiles] 
  • CONFIG/IPSLCM/IPSLCM5/branches/IPSLCM5_v2/EXP00/COMP/lmdz.driver

    r793 r815  
    5959    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices LMDZ_NbPeriod_adjust 
    6060    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 ; 
     61 
     62    if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
     63        IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices LMDZ_Bands_file_name 
     64        eval LMDZ_Bands_file_name=\${${compname}_UserChoices_LMDZ_Bands_file_name} > /dev/null 2>&1 
     65    fi 
    6566 
    6667    ##-- This could be define in lmdz.card, inside section [UserChoices] 
     
    104105    fi 
    105106 
     107    ## algo : For CumulPeriod=1 ;  
     108    ##        IF NbPeriod_Adjust = 0, Get Bands file directly from server, store it with _0 suffix 
     109    ##        ELSE LMDZ_adjust=y ; save Bands file on file server ; 
     110    ##        For CumulPeriod=2 to LMDZ_NbPeriod_adjust ; Get Bands file from server (CumulPeriod-1) ; LMDZ_adjust=y ; save Bands file on file server ; 
     111    ##        For CumulPeriod > LMDZ_NbPeriod_adjust ; LMDZ_adjust=n ; Get Bands file from server (CumulPeriod=LMDZ_NbPeriod_adjust 0 to force it) ; Use Bands ; 
     112 
     113    if [ ${CumulPeriod} -eq 1 ] ; then 
     114        if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
     115            IGCM_sys_Get ${LMDZ_Bands_file_name} Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat 
     116            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_0 
     117            IGCM_debug_Print 1 "Bands file forced to ${LMDZ_Bands_file_name} and stored in ${config_UserChoices_JobName}_Bands_${RESOL_ATM_3D}_${NUM_PROC_ATM}prc.dat_0" 
     118        fi 
     119    fi 
     120 
    106121    LMDZ_adjust=n 
    107122    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && LMDZ_adjust=y 
    108123 
    109     RefPeriod=${LMDZ_NbPeriod_adjust} 
    110     [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && (( RefPeriod = ${CumulPeriod} - 1 )) 
     124    RefPeriod=${LMDZ_NbPeriod_adjust} #0 to use a Bands file from Restart 
     125    [ ${CumulPeriod} -le ${LMDZ_NbPeriod_adjust} ] && (( RefPeriod = ${CumulPeriod} - 1 ))  
    111126 
    112127    [ ${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 
Note: See TracChangeset for help on using the changeset viewer.