Changeset 1172


Ignore:
Timestamp:
10/25/10 12:38:08 (14 years ago)
Author:
sdipsl
Message:

Update ldmz.driver

  • turn on daily cosp for historical experiment after year 1979
  • clean up unnecessary eval call in the driver
Location:
CONFIG/IPSLCM/IPSLCM5A
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/IPSLCM/IPSLCM5A/EXP00/COMP/lmdz.driver

    r1163 r1172  
    5959    ## Read LMDZ_NbPeriod_adjust option in lmdz.card  
    6060    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices LMDZ_NbPeriod_adjust 
    61     eval LMDZ_NbPeriod_adjust=\${lmdz_UserChoices_LMDZ_NbPeriod_adjust} > /dev/null 2>&1 
     61    LMDZ_NbPeriod_adjust=${lmdz_UserChoices_LMDZ_NbPeriod_adjust} 
    6262 
    6363    if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
    6464        IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices LMDZ_Bands_file_name 
    65         eval LMDZ_Bands_file_name=\${lmdz_UserChoices_LMDZ_Bands_file_name} > /dev/null 2>&1 
     65        LMDZ_Bands_file_name=${lmdz_UserChoices_LMDZ_Bands_file_name} 
    6666    fi 
    6767 
    6868    ##  Read LMDZ_Freq_aero and LMDZ_Length_aero in lmdz.card 
    69     eval LMDZ_Freq_aero=\${lmdz_UserChoices_LMDZ_Freq_aero} > /dev/null 2>&1 
    70     eval LMDZ_Length_aero=\${lmdz_UserChoices_LMDZ_Length_aero} > /dev/null 2>&1 
     69    LMDZ_Freq_aero=${lmdz_UserChoices_LMDZ_Freq_aero} 
     70    LMDZ_Length_aero=${lmdz_UserChoices_LMDZ_Length_aero} 
    7171 
    7272    ##  Read LMDZ_COSP_monthly  LMDZ_COSP_daily and LMDZ_COSP_hf in lmdz.card 
    73     eval LMDZ_COSP_OK=\${lmdz_UserChoices_LMDZ_COSP_OK} > /dev/null 2>&1 
    74     eval LMDZ_COSP_monthly=\${lmdz_UserChoices_LMDZ_COSP_monthly} > /dev/null 2>&1 
    75     eval LMDZ_COSP_daily=\${lmdz_UserChoices_LMDZ_COSP_daily} > /dev/null 2>&1 
    76     eval LMDZ_COSP_hf=\${lmdz_UserChoices_LMDZ_COSP_hf} > /dev/null 2>&1 
     73    LMDZ_COSP_OK=${lmdz_UserChoices_LMDZ_COSP_OK} 
     74    LMDZ_COSP_monthly=${lmdz_UserChoices_LMDZ_COSP_monthly} 
     75    LMDZ_COSP_daily=${lmdz_UserChoices_LMDZ_COSP_daily} 
     76    LMDZ_COSP_hf=${lmdz_UserChoices_LMDZ_COSP_hf} 
    7777 
    7878    ##  Read LMDZ_NMC_monthly  LMDZ_NMC_daily and LMDZ_NMC_hf in lmdz.card 
    79     eval LMDZ_NMC_monthly=\${lmdz_UserChoices_LMDZ_NMC_monthly} > /dev/null 2>&1 
    80     eval LMDZ_NMC_daily=\${lmdz_UserChoices_LMDZ_NMC_daily} > /dev/null 2>&1 
    81     eval LMDZ_NMC_hf=\${lmdz_UserChoices_LMDZ_NMC_hf} > /dev/null 2>&1 
    82  
     79    LMDZ_NMC_monthly=${lmdz_UserChoices_LMDZ_NMC_monthly} 
     80    LMDZ_NMC_daily=${lmdz_UserChoices_LMDZ_NMC_daily} 
     81    LMDZ_NMC_hf=${lmdz_UserChoices_LMDZ_NMC_hf} 
    8382 
    8483    IGCM_debug_PopStack "ATM_Initialize" 
     
    162161    ## Read ByPass_hgardfou_teta option in lmdz.card --> divide teta* by 2 if [ $ByPass_hgardfou_teta = 1 ] 
    163162    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices ByPass_hgardfou_teta 
    164     eval ByPass_hgardfou_teta=\${lmdz_UserChoices_ByPass_hgardfou_teta} > /dev/null 2>&1 
     163    ByPass_hgardfou_teta=${lmdz_UserChoices_ByPass_hgardfou_teta} 
    165164    if [ ${ByPass_hgardfou_teta} = y ] ; then 
    166165        awk '{ if ($0 ~ /^teta.*=/) {split($0,a,"=") ; print a[1]"="a[2]/2"."} else print $0}' gcm.def > gcm.def.tmp 
     
    176175    ## Read ByPass_hgardfou_mats option in lmdz.card --> purmats=y 2 if [ $ByPass_hgardfou_mats = 1 ] 
    177176    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices ByPass_hgardfou_mats 
    178     eval ByPass_hgardfou_mats=\${lmdz_UserChoices_ByPass_hgardfou_mats} > /dev/null 2>&1 
     177    ByPass_hgardfou_mats=${lmdz_UserChoices_ByPass_hgardfou_mats} 
    179178    if [ ${ByPass_hgardfou_mats} = y ] ; then 
    180179        sed -e "s/^purmats=.*/purmats=y/" gcm.def > gcm.def.tmp 
  • CONFIG/IPSLCM/IPSLCM5A/NOPISCES/COMP/lmdz.driver

    r1163 r1172  
    5959    ## Read LMDZ_NbPeriod_adjust option in lmdz.card  
    6060    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices LMDZ_NbPeriod_adjust 
    61     eval LMDZ_NbPeriod_adjust=\${lmdz_UserChoices_LMDZ_NbPeriod_adjust} > /dev/null 2>&1 
     61    LMDZ_NbPeriod_adjust=${lmdz_UserChoices_LMDZ_NbPeriod_adjust} 
    6262 
    6363    if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
    6464        IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices LMDZ_Bands_file_name 
    65         eval LMDZ_Bands_file_name=\${lmdz_UserChoices_LMDZ_Bands_file_name} > /dev/null 2>&1 
     65        LMDZ_Bands_file_name=${lmdz_UserChoices_LMDZ_Bands_file_name} 
    6666    fi 
    6767 
    6868    ##  Read LMDZ_Freq_aero and LMDZ_Length_aero in lmdz.card 
    69     eval LMDZ_Freq_aero=\${lmdz_UserChoices_LMDZ_Freq_aero} > /dev/null 2>&1 
    70     eval LMDZ_Length_aero=\${lmdz_UserChoices_LMDZ_Length_aero} > /dev/null 2>&1 
     69    LMDZ_Freq_aero=${lmdz_UserChoices_LMDZ_Freq_aero} 
     70    LMDZ_Length_aero=${lmdz_UserChoices_LMDZ_Length_aero} 
    7171 
    7272    ##  Read LMDZ_COSP_monthly  LMDZ_COSP_daily and LMDZ_COSP_hf in lmdz.card 
    73     eval LMDZ_COSP_OK=\${lmdz_UserChoices_LMDZ_COSP_OK} > /dev/null 2>&1 
    74     eval LMDZ_COSP_monthly=\${lmdz_UserChoices_LMDZ_COSP_monthly} > /dev/null 2>&1 
    75     eval LMDZ_COSP_daily=\${lmdz_UserChoices_LMDZ_COSP_daily} > /dev/null 2>&1 
    76     eval LMDZ_COSP_hf=\${lmdz_UserChoices_LMDZ_COSP_hf} > /dev/null 2>&1 
     73    LMDZ_COSP_OK=${lmdz_UserChoices_LMDZ_COSP_OK} 
     74    LMDZ_COSP_monthly=${lmdz_UserChoices_LMDZ_COSP_monthly} 
     75    LMDZ_COSP_daily=${lmdz_UserChoices_LMDZ_COSP_daily} 
     76    LMDZ_COSP_hf=${lmdz_UserChoices_LMDZ_COSP_hf} 
    7777 
    7878    ##  Read LMDZ_NMC_monthly  LMDZ_NMC_daily and LMDZ_NMC_hf in lmdz.card 
    79     eval LMDZ_NMC_monthly=\${lmdz_UserChoices_LMDZ_NMC_monthly} > /dev/null 2>&1 
    80     eval LMDZ_NMC_daily=\${lmdz_UserChoices_LMDZ_NMC_daily} > /dev/null 2>&1 
    81     eval LMDZ_NMC_hf=\${lmdz_UserChoices_LMDZ_NMC_hf} > /dev/null 2>&1 
    82  
     79    LMDZ_NMC_monthly=${lmdz_UserChoices_LMDZ_NMC_monthly} 
     80    LMDZ_NMC_daily=${lmdz_UserChoices_LMDZ_NMC_daily} 
     81    LMDZ_NMC_hf=${lmdz_UserChoices_LMDZ_NMC_hf} 
    8382 
    8483    IGCM_debug_PopStack "ATM_Initialize" 
     
    162161    ## Read ByPass_hgardfou_teta option in lmdz.card --> divide teta* by 2 if [ $ByPass_hgardfou_teta = 1 ] 
    163162    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices ByPass_hgardfou_teta 
    164     eval ByPass_hgardfou_teta=\${lmdz_UserChoices_ByPass_hgardfou_teta} > /dev/null 2>&1 
     163    ByPass_hgardfou_teta=${lmdz_UserChoices_ByPass_hgardfou_teta} 
    165164    if [ ${ByPass_hgardfou_teta} = y ] ; then 
    166165        awk '{ if ($0 ~ /^teta.*=/) {split($0,a,"=") ; print a[1]"="a[2]/2"."} else print $0}' gcm.def > gcm.def.tmp 
     
    176175    ## Read ByPass_hgardfou_mats option in lmdz.card --> purmats=y 2 if [ $ByPass_hgardfou_mats = 1 ] 
    177176    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices ByPass_hgardfou_mats 
    178     eval ByPass_hgardfou_mats=\${lmdz_UserChoices_ByPass_hgardfou_mats} > /dev/null 2>&1 
     177    ByPass_hgardfou_mats=${lmdz_UserChoices_ByPass_hgardfou_mats} 
    179178    if [ ${ByPass_hgardfou_mats} = y ] ; then 
    180179        sed -e "s/^purmats=.*/purmats=y/" gcm.def > gcm.def.tmp 
  • CONFIG/IPSLCM/IPSLCM5A/historical/COMP/lmdz.driver

    r1083 r1172  
    6262    ## Read LMDZ_NbPeriod_adjust option in lmdz.card  
    6363    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices LMDZ_NbPeriod_adjust 
    64     eval LMDZ_NbPeriod_adjust=\${lmdz_UserChoices_LMDZ_NbPeriod_adjust} > /dev/null 2>&1 
     64    LMDZ_NbPeriod_adjust=${lmdz_UserChoices_LMDZ_NbPeriod_adjust} 
    6565 
    6666    if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
    6767        IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices LMDZ_Bands_file_name 
    68         eval LMDZ_Bands_file_name=\${lmdz_UserChoices_LMDZ_Bands_file_name} > /dev/null 2>&1 
     68        LMDZ_Bands_file_name=${lmdz_UserChoices_LMDZ_Bands_file_name} 
    6969    fi 
    7070 
    7171    ##  Read LMDZ_Freq_aero and LMDZ_Length_aero in lmdz.card 
    72     eval LMDZ_Freq_aero=\${lmdz_UserChoices_LMDZ_Freq_aero} > /dev/null 2>&1 
    73     eval LMDZ_Length_aero=\${lmdz_UserChoices_LMDZ_Length_aero} > /dev/null 2>&1 
     72    LMDZ_Freq_aero=${lmdz_UserChoices_LMDZ_Freq_aero} 
     73    LMDZ_Length_aero=${lmdz_UserChoices_LMDZ_Length_aero} 
    7474 
    7575    ##  Read LMDZ_COSP_monthly  LMDZ_COSP_daily and LMDZ_COSP_hf in lmdz.card 
    76     eval LMDZ_COSP_OK=\${lmdz_UserChoices_LMDZ_COSP_OK} > /dev/null 2>&1 
    77     eval LMDZ_COSP_monthly=\${lmdz_UserChoices_LMDZ_COSP_monthly} > /dev/null 2>&1 
    78     eval LMDZ_COSP_daily=\${lmdz_UserChoices_LMDZ_COSP_daily} > /dev/null 2>&1 
    79     eval LMDZ_COSP_hf=\${lmdz_UserChoices_LMDZ_COSP_hf} > /dev/null 2>&1 
     76    LMDZ_COSP_OK=${lmdz_UserChoices_LMDZ_COSP_OK} 
     77    LMDZ_COSP_monthly=${lmdz_UserChoices_LMDZ_COSP_monthly} 
     78    LMDZ_COSP_daily=${lmdz_UserChoices_LMDZ_COSP_daily} 
     79    LMDZ_COSP_hf=${lmdz_UserChoices_LMDZ_COSP_hf} 
    8080 
    8181    ##  Read LMDZ_NMC_monthly  LMDZ_NMC_daily and LMDZ_NMC_hf in lmdz.card 
    82     eval LMDZ_NMC_monthly=\${lmdz_UserChoices_LMDZ_NMC_monthly} > /dev/null 2>&1 
    83     eval LMDZ_NMC_daily=\${lmdz_UserChoices_LMDZ_NMC_daily} > /dev/null 2>&1 
    84     eval LMDZ_NMC_hf=\${lmdz_UserChoices_LMDZ_NMC_hf} > /dev/null 2>&1 
     82    LMDZ_NMC_monthly=${lmdz_UserChoices_LMDZ_NMC_monthly} 
     83    LMDZ_NMC_daily=${lmdz_UserChoices_LMDZ_NMC_daily} 
     84    LMDZ_NMC_hf=${lmdz_UserChoices_LMDZ_NMC_hf} 
    8585 
    8686    IGCM_debug_PopStack "ATM_Initialize" 
     
    156156    IPCC_CFC11=`grep Annee_${year} CFC11_1765_2005.txt | awk -F= '{print $2}'` 
    157157    IPCC_CFC12=`grep Annee_${year} CFC12_1765_2005.txt | awk -F= '{print $2}'` 
     158 
     159    ##-- For historical daily cosp must be output during 1979-2005 period 
     160    [ ${year} -ge 1979 ] && LMDZ_COSP_daily=y 
    158161 
    159162    ## physiq.def parameters modified from initial physiq_L${RESOL_ATM_Z} 
     
    190193    ## Read ByPass_hgardfou_teta option in lmdz.card --> divide teta* by 2 if [ $ByPass_hgardfou_teta = 1 ] 
    191194    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices ByPass_hgardfou_teta 
    192     eval ByPass_hgardfou_teta=\${lmdz_UserChoices_ByPass_hgardfou_teta} > /dev/null 2>&1 
     195    ByPass_hgardfou_teta=${lmdz_UserChoices_ByPass_hgardfou_teta} 
    193196    if [ ${ByPass_hgardfou_teta} = y ] ; then 
    194197        awk '{ if ($0 ~ /^teta.*=/) {split($0,a,"=") ; print a[1]"="a[2]/2"."} else print $0}' gcm.def > gcm.def.tmp 
     
    204207    ## Read ByPass_hgardfou_mats option in lmdz.card --> purmats=y 2 if [ $ByPass_hgardfou_mats = 1 ] 
    205208    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices ByPass_hgardfou_mats 
    206     eval ByPass_hgardfou_mats=\${lmdz_UserChoices_ByPass_hgardfou_mats} > /dev/null 2>&1 
     209    ByPass_hgardfou_mats=${lmdz_UserChoices_ByPass_hgardfou_mats} 
    207210    if [ ${ByPass_hgardfou_mats} = y ] ; then 
    208211        sed -e "s/^purmats=.*/purmats=y/" gcm.def > gcm.def.tmp 
  • CONFIG/IPSLCM/IPSLCM5A/piControl/COMP/lmdz.driver

    r1163 r1172  
    5959    ## Read LMDZ_NbPeriod_adjust option in lmdz.card  
    6060    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices LMDZ_NbPeriod_adjust 
    61     eval LMDZ_NbPeriod_adjust=\${lmdz_UserChoices_LMDZ_NbPeriod_adjust} > /dev/null 2>&1 
     61    LMDZ_NbPeriod_adjust=${lmdz_UserChoices_LMDZ_NbPeriod_adjust} 
    6262 
    6363    if [ ${LMDZ_NbPeriod_adjust} -eq 0 ] ; then 
    6464        IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices LMDZ_Bands_file_name 
    65         eval LMDZ_Bands_file_name=\${lmdz_UserChoices_LMDZ_Bands_file_name} > /dev/null 2>&1 
     65        LMDZ_Bands_file_name=${lmdz_UserChoices_LMDZ_Bands_file_name} 
    6666    fi 
    6767 
    6868    ##  Read LMDZ_Freq_aero and LMDZ_Length_aero in lmdz.card 
    69     eval LMDZ_Freq_aero=\${lmdz_UserChoices_LMDZ_Freq_aero} > /dev/null 2>&1 
    70     eval LMDZ_Length_aero=\${lmdz_UserChoices_LMDZ_Length_aero} > /dev/null 2>&1 
     69    LMDZ_Freq_aero=${lmdz_UserChoices_LMDZ_Freq_aero} 
     70    LMDZ_Length_aero=${lmdz_UserChoices_LMDZ_Length_aero} 
    7171 
    7272    ##  Read LMDZ_COSP_monthly  LMDZ_COSP_daily and LMDZ_COSP_hf in lmdz.card 
    73     eval LMDZ_COSP_OK=\${lmdz_UserChoices_LMDZ_COSP_OK} > /dev/null 2>&1 
    74     eval LMDZ_COSP_monthly=\${lmdz_UserChoices_LMDZ_COSP_monthly} > /dev/null 2>&1 
    75     eval LMDZ_COSP_daily=\${lmdz_UserChoices_LMDZ_COSP_daily} > /dev/null 2>&1 
    76     eval LMDZ_COSP_hf=\${lmdz_UserChoices_LMDZ_COSP_hf} > /dev/null 2>&1 
     73    LMDZ_COSP_OK=${lmdz_UserChoices_LMDZ_COSP_OK} 
     74    LMDZ_COSP_monthly=${lmdz_UserChoices_LMDZ_COSP_monthly} 
     75    LMDZ_COSP_daily=${lmdz_UserChoices_LMDZ_COSP_daily} 
     76    LMDZ_COSP_hf=${lmdz_UserChoices_LMDZ_COSP_hf} 
    7777 
    7878    ##  Read LMDZ_NMC_monthly  LMDZ_NMC_daily and LMDZ_NMC_hf in lmdz.card 
    79     eval LMDZ_NMC_monthly=\${lmdz_UserChoices_LMDZ_NMC_monthly} > /dev/null 2>&1 
    80     eval LMDZ_NMC_daily=\${lmdz_UserChoices_LMDZ_NMC_daily} > /dev/null 2>&1 
    81     eval LMDZ_NMC_hf=\${lmdz_UserChoices_LMDZ_NMC_hf} > /dev/null 2>&1 
     79    LMDZ_NMC_monthly=${lmdz_UserChoices_LMDZ_NMC_monthly} 
     80    LMDZ_NMC_daily=${lmdz_UserChoices_LMDZ_NMC_daily} 
     81    LMDZ_NMC_hf=${lmdz_UserChoices_LMDZ_NMC_hf} 
    8282 
    8383    IGCM_debug_PopStack "ATM_Initialize" 
     
    161161    ## Read ByPass_hgardfou_teta option in lmdz.card --> divide teta* by 2 if [ $ByPass_hgardfou_teta = 1 ] 
    162162    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices ByPass_hgardfou_teta 
    163     eval ByPass_hgardfou_teta=\${lmdz_UserChoices_ByPass_hgardfou_teta} > /dev/null 2>&1 
     163    ByPass_hgardfou_teta=${lmdz_UserChoices_ByPass_hgardfou_teta} 
    164164    if [ ${ByPass_hgardfou_teta} = y ] ; then 
    165165        awk '{ if ($0 ~ /^teta.*=/) {split($0,a,"=") ; print a[1]"="a[2]/2"."} else print $0}' gcm.def > gcm.def.tmp 
     
    175175    ## Read ByPass_hgardfou_mats option in lmdz.card --> purmats=y 2 if [ $ByPass_hgardfou_mats = 1 ] 
    176176    IGCM_card_DefineVariableFromOption ${SUBMIT_DIR}/COMP/lmdz.card UserChoices ByPass_hgardfou_mats 
    177     eval ByPass_hgardfou_mats=\${lmdz_UserChoices_ByPass_hgardfou_mats} > /dev/null 2>&1 
     177    ByPass_hgardfou_mats=${lmdz_UserChoices_ByPass_hgardfou_mats} 
    178178    if [ ${ByPass_hgardfou_mats} = y ] ; then 
    179179        sed -e "s/^purmats=.*/purmats=y/" gcm.def > gcm.def.tmp 
Note: See TracChangeset for help on using the changeset viewer.