Changeset 289


Ignore:
Timestamp:
03/17/08 17:54:20 (16 years ago)
Author:
sdipsl
Message:

SD : - Add option ByPass_hgardfou in [UserChoices?] section of lmdz.card

  • Divide teta* in gcm.def for one period and then continue as usual.
  • Use with with care
  • Add option LMDZ_adjust in [UserChoices?] section of lmdz.card
    • put adjust = y in run.def
    • save Bands file in ${SUBMIT_DIR}/PARAM
Location:
CONFIG/trunk/IPSLCM4_v2/EXP00
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/trunk/IPSLCM4_v2/EXP00/COMP/lmdz.card

    r253 r289  
    33 
    44[UserChoices] 
     5ByPass_hgardfou = n 
     6LMDZ_adjust = n 
    57 
    68[InitialStateFiles] 
     
    1416        (${R_INIT}/ATM/${config_UserChoices_TagName}/landiceref.nc, .), \ 
    1517        (${R_INIT}/ATM/${config_UserChoices_TagName}/${RESOL}/o2a.nc, .)  
    16  
    1718 
    1819[BoundaryFiles] 
  • CONFIG/trunk/IPSLCM4_v2/EXP00/COMP/lmdz.driver

    r284 r289  
    3636    done 
    3737 
    38     ##--Variables used by LMDZ -- 
     38    ##--Variables used by LMDZ in physiq.def -- 
    3939    PAT_INST=$(     grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def  | grep 'OK_instan'  ) 
    4040    PAT_JOUR=$(     grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def  | grep 'OK_journe'  ) 
    4141    PAT_MOIS=$(     grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def  | grep 'OK_mensuel' ) 
    4242    PAT_HFRE=$(     grep -v ^# ${SUBMIT_DIR}/PARAM/physiq.def  | grep 'ok_hf'      ) 
    43  
     43    ##--Variables used by LMDZ in gcm.def -- 
    4444    PAT_iphysiq=$(  grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} | grep iphysiq  ) 
    4545    PAT_iperiod=$(  grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} | grep iperiod  ) 
    4646    PAT_day_step=$( grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} | grep day_step ) 
    4747    PAT_ecritphy=$( grep -v ^# ${SUBMIT_DIR}/PARAM/gcm.def_${RESOL_ATM} | grep ecritphy ) 
     48 
     49    ## Read LMDZ_adjust option in ${compname}.card --> put adjust=y and save Bands_*.dat in ${SUBMIT_DIR}/PARAM 
     50    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices LMDZ_adjust 
     51    eval LMDZ_adjust=\${${compname}_UserChoices_LMDZ_adjust} > /dev/null 2>&1 
    4852 
    4953    ##-- This could be define in lmdz.card, inside section [UserChoices] 
     
    7478 
    7579    ## Mise en forme du fichier physiq.def 
    76     sed -e "s/OK_instan=.*/OK_instan=${OK_instan}/"   \ 
    77         -e "s/OK_journe=.*/OK_journe=${OK_journe}/"   \ 
     80    sed -e "s/OK_instan=.*/OK_instan=${OK_instan}/"    \ 
     81        -e "s/OK_journe=.*/OK_journe=${OK_journe}/"    \ 
    7882        -e "s/OK_mensuel=.*/OK_mensuel=${OK_mensuel}/" \ 
    79         -e "s/ok_hf=.*/ok_hf=${ok_hf}/" \ 
     83        -e "s/ok_hf=.*/ok_hf=${ok_hf}/"                \ 
    8084        physiq.def > physiq.def.tmp 
    8185    IGCM_sys_Mv physiq.def.tmp physiq.def 
    8286 
    8387    ## Mise en forme du fichier gcm.def 
    84     sed  -e "s/${PAT_ecritphy}/ecritphy=${ecritphy}/" \ 
    85         -e "s/${PAT_day_step}/day_step=${day_step}/" \ 
    86         -e "s/${PAT_iperiod}/iperiod=${iperiod}/" \ 
    87         -e "s/${PAT_iphysiq}/iphysiq=${iphysiq}/" \ 
     88    sed -e "s/${PAT_ecritphy}/ecritphy=${ecritphy}/"  \ 
     89        -e "s/${PAT_day_step}/day_step=${day_step}/"   \ 
     90        -e "s/${PAT_iperiod}/iperiod=${iperiod}/"      \ 
     91        -e "s/${PAT_iphysiq}/iphysiq=${iphysiq}/"      \ 
    8892        gcm.def > gcm.def.tmp 
    8993    IGCM_sys_Mv gcm.def.tmp gcm.def 
    9094 
    9195    ## Mise en forme du fichier run.def 
    92     sed -e "s/_dayref_/${InitDay}/" \ 
    93         -e "s/_anneeref_/${InitYear}/" \ 
    94         -e "s/_nday_/${PeriodLengthInDays}/" \ 
    95         -e "s/_raz_date_/${RAZ_DATE}/" \ 
     96    sed -e "s/_dayref_/${InitDay}/"                    \ 
     97        -e "s/_anneeref_/${InitYear}/"                 \ 
     98        -e "s/_nday_/${PeriodLengthInDays}/"           \ 
     99        -e "s/_raz_date_/${RAZ_DATE}/"                 \ 
     100        -e "s/_adjust_/${LMDZ_adjust}/"                \ 
    96101        run.def > run.def.tmp 
    97102    IGCM_sys_Mv run.def.tmp run.def 
     103 
     104    ## Read ByPass_hgardfou option in ${compname}.card --> divide teta* by 2 if [ $ByPass_hgardfou = 1 ] 
     105    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices ByPass_hgardfou 
     106    eval ByPass_hgardfou=\${${compname}_UserChoices_ByPass_hgardfou} > /dev/null 2>&1 
     107    if [ ${ByPass_hgardfou} = y ] ; then 
     108        awk '{ if ($0 ~ /^teta.*=/) {split($0,a,"=") ; print a[1]"="a[2]/2"."} else print $0}' gcm.def > gcm.def.tmp 
     109        IGCM_sys_Mv gcm.def.tmp gcm.def 
     110        echo 
     111        IGCM_debug_Print 1 "ByPass_hgardfou : ^teta*/2 in gcm.def" 
     112        echo 
     113        cat gcm.def 
     114        ByPass_hgardfou=n 
     115        IGCM_card_WriteOption ${SUBMIT_DIR}/COMP/${compname}.card UserChoices ByPass_hgardfou "${ByPass_hgardfou}" 
     116    fi 
    98117 
    99118    if ( ${FirstInitialize} ) ; then 
     
    111130        fi 
    112131 
    113     fi  
     132    fi 
    114133 
    115134    IGCM_debug_PopStack "ATM_Update" 
     
    121140    IGCM_debug_PushStack "ATM_Finalize" 
    122141 
     142    [ ${LMDZ_adjust} = y ] && IGCM_sys_Cp Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat ${SUBMIT_DIR}/PARAM 
     143 
    123144    echo FINALIZE ATM ! 
    124  
    125     #IGCM_sys_Cp Bands_${BandsResol}_${NUM_PROC_ATM}prc.dat ${SUBMIT_DIR}/PARAM 
    126145 
    127146    IGCM_debug_PopStack "ATM_Finalize" 
  • CONFIG/trunk/IPSLCM4_v2/EXP00/PARAM/run.def

    r288 r289  
    2222periodav=30. 
    2323## activation du calcul d equilibrage de charge 
    24 adjust=n 
     24adjust=_adjust_ 
Note: See TracChangeset for help on using the changeset viewer.