Ignore:
Timestamp:
02/21/18 16:21:18 (3 years ago)
Author:
acosce
Message:

update configuration IPSLCM5A2CHT to be use with last inca version (NMHC + AER + SOA)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • CONFIG/UNIFORM/v6/IPSLCM5A2CHT/GENERAL/DRIVER/inca.driver

    r3283 r3598  
    3939    echo LMDZ physics version : ${LMDZ_Physics} 
    4040 
     41    enable1=.FALSE. 
     42    enable2=.FALSE. 
     43 
    4144    for frequency in ${config_CHM_WriteFrequency} ; do 
    42     case ${frequency} in 
    43         1M|1m) freq_output=1mo ;; 
    44         1D|1d) freq_output=1d ;; 
    45             *) IGCM_debug_Exit "CHM_Update " ${frequency} " invalid WriteFrequency : choose between 1M and 1D" 
    46         IGCM_debug_Verif_Exit ;; 
    47  
    48     esac 
     45        case ${frequency} in  
     46            1D|1d) enable1=.TRUE. ;; 
     47        esac 
     48        case ${frequency} in 
     49            1M|1m) enable2=.TRUE. ;; 
     50        esac 
    4951    done 
    5052 
     
    6163    case ${CHEM} in  
    6264        AER) 
    63             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml forcage     output_freq ${freq_output} 
    64             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml aero        output_freq ${freq_output} 
    65             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml chemistry   output_freq ${freq_output} 
    66             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml emissions   output_freq ${freq_output} 
    67             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml species     output_freq ${freq_output} 
    68             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml dvel        output_freq ${freq_output} 
    69             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml washout     output_freq ${freq_output} 
    70             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml reacflux    output_freq ${freq_output} 
    71             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml invariants  output_freq ${freq_output} 
     65            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml   forcage1     enabled ${enable1} 
     66            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml forcage2     enabled ${enable2} 
     67            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml   aero1        enabled ${enable1} 
     68            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml aero2        enabled ${enable2} 
     69            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml   chemistry1   enabled ${enable1} 
     70            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml chemistry2   enabled ${enable2} 
     71            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml   emissions1   enabled ${enable1} 
     72            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml emissions2   enabled ${enable2} 
     73            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml   species1     enabled ${enable1} 
     74            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml species2     enabled ${enable2} 
     75            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml   dvel1        enabled ${enable1} 
     76            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml dvel2        enabled ${enable2} 
     77            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml   washout1     enabled ${enable1} 
     78            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml washout2     enabled ${enable2} 
     79            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml   reacflux1    enabled ${enable1} 
     80            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml reacflux2    enabled ${enable2} 
     81            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml   invariants1  enabled ${enable1} 
     82            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml invariants2  enabled ${enable2} 
    7283 
    7384            if [ X${LMDZ_Physics} = X"AP" ] ; then 
     
    7889        ;; 
    7990        DUSS) 
    80             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml forcage     output_freq ${freq_output} 
    81             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml aero        output_freq ${freq_output} 
    82             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml emissions   output_freq ${freq_output} 
    83             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml species     output_freq ${freq_output} 
    84             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml vegetation  output_freq ${freq_output} 
     91            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml forcage1     enabled ${enable1} 
     92            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml aero1        enabled ${enable1} 
     93            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml emissions1   enabled ${enable1} 
     94            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml species1     enabled ${enable1} 
     95            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml vegetation1  enabled ${enable1} 
     96 
     97            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml forcage2     enabled ${enable2} 
     98            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml aero2        enabled ${enable2} 
     99            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml emissions2   enabled ${enable2} 
     100            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml species2     enabled ${enable2} 
     101            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml vegetation2  enabled ${enable2} 
     102 
    85103            if [ X${LMDZ_Physics} = X"AP" ] ; then 
    86104                IGCM_comp_modifyDefFile nonblocker run.def config_inca aero 
     
    90108        ;; 
    91109        NMHC)  
    92             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml reacflux    output_freq ${freq_output} 
    93             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml emissions   output_freq ${freq_output} 
    94             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml species     output_freq ${freq_output} 
    95             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml chemistry   output_freq ${freq_output} 
    96             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml dvel        output_freq ${freq_output} 
    97             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml washout     output_freq ${freq_output} 
     110            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml reacflux1    enabled ${enable1} 
     111            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml emissions1   enabled ${enable1} 
     112            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml species1     enabled ${enable1} 
     113            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml chemistry1   enabled ${enable1} 
     114            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml dvel1        enabled ${enable1} 
     115            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml washout1     enabled ${enable1} 
     116 
     117            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml reacflux2  enabled ${enable2}   
     118            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml emissions2 enabled ${enable2}   
     119            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml species2   enabled ${enable2}   
     120            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml chemistry2 enabled ${enable2}   
     121            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml dvel2      enabled ${enable2}   
     122            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml washout2   enabled ${enable2}   
     123 
    98124            IGCM_comp_modifyDefFile nonblocker run.def config_inca chem 
    99125            ;; 
    100126        NMHC_AER) 
    101             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml forcage     output_freq ${freq_output} 
    102             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml aero        output_freq ${freq_output} 
    103             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml species     output_freq ${freq_output} 
    104             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml chemistry   output_freq ${freq_output} 
    105             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml emissions   output_freq ${freq_output} 
    106             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml dvel        output_freq ${freq_output} 
    107             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml phtrate     output_freq ${freq_output} 
    108             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml washout     output_freq ${freq_output} 
    109             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml reacflux    output_freq ${freq_output} 
    110             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml vegetation  output_freq ${freq_output} 
     127            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml forcage1     enabled ${enable1} 
     128            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml aero1        enabled ${enable1} 
     129            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml species1     enabled ${enable1} 
     130            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml chemistry1   enabled ${enable1} 
     131            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml emissions1   enabled ${enable1} 
     132            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml dvel1        enabled ${enable1} 
     133            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml phtrate1     enabled ${enable1} 
     134            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml washout1     enabled ${enable1} 
     135            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml reacflux1    enabled ${enable1} 
     136            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml vegetation1  enabled ${enable1} 
     137 
     138            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml forcage2    enabled ${enable2}   
     139            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml aero2       enabled ${enable2}  
     140            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml species2    enabled ${enable2}  
     141            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml chemistry2  enabled ${enable2}  
     142            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml emissions2  enabled ${enable2}  
     143            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml dvel2       enabled ${enable2}  
     144            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml phtrate2    enabled ${enable2}  
     145            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml washout2    enabled ${enable2}  
     146            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml reacflux2   enabled ${enable2}  
     147            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml vegetation2 enabled ${enable2}  
     148 
    111149            if [ X${LMDZ_Physics} = X"AP" ] ; then 
    112150                IGCM_comp_modifyDefFile nonblocker run.def config_inca aero 
     
    117155 
    118156        NMHC_AER_S) 
    119             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml forcage     output_freq ${freq_output} 
    120             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml aero        output_freq ${freq_output} 
    121             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml species     output_freq ${freq_output} 
    122             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml chemistry   output_freq ${freq_output} 
    123             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml phtrate     output_freq ${freq_output} 
    124             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml emissions   output_freq ${freq_output} 
    125             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml dvel        output_freq ${freq_output} 
    126             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml washout     output_freq ${freq_output} 
    127             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml reacflux    output_freq ${freq_output} 
    128             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml vegetation  output_freq ${freq_output} 
     157            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml forcage1     enabled ${enable1} 
     158            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml aero1        enabled ${enable1} 
     159            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml species1     enabled ${enable1} 
     160            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml chemistry1   enabled ${enable1} 
     161            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml emissions1   enabled ${enable1} 
     162            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml dvel1        enabled ${enable1} 
     163            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml phtrate1     enabled ${enable1} 
     164            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml washout1     enabled ${enable1} 
     165            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml reacflux1    enabled ${enable1} 
     166            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml vegetation1  enabled ${enable1} 
     167 
     168            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml forcage2    enabled ${enable2}  
     169            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml aero2       enabled ${enable2}  
     170            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml species2    enabled ${enable2}  
     171            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml chemistry2  enabled ${enable2}  
     172            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml emissions2  enabled ${enable2}  
     173            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml phtrate2    enabled ${enable2}  
     174            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml dvel2       enabled ${enable2}  
     175            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml washout2    enabled ${enable2}  
     176            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml reacflux2   enabled ${enable2}  
     177            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml vegetation2 enabled ${enable2}   
    129178 
    130179            if [ X${LMDZ_Physics} = X"AP" ] ; then 
     
    135184        ;; 
    136185        GES) 
    137             IGCM_comp_modifyXmlFile nonblocker file_def_inca.xml divers   output_freq ${freq_output} 
     186            IGCM_comp_modifyXmlFile nonblocker file_def_inca_daily.xml emissions1    enabled ${enable1} 
     187 
     188            IGCM_comp_modifyXmlFile nonblocker file_def_inca_monthly.xml emissions2    enabled ${enable2} 
     189 
    138190            IGCM_comp_modifyDefFile nonblocker run.def config_inca chem 
    139191        esac 
    140  
    141  
    142192 
    143193 
     
    148198        IGCM_comp_modifyDefFile nonblocker inca.def LMDZ_10m_winds  n 
    149199    fi 
     200 
     201    if [  X${inca_UserChoices_10m_winds_method} = X ] ; then 
     202    IGCM_comp_modifyDefFile nonblocker inca.def  10m_winds_method  threshold 
     203    else 
     204    IGCM_comp_modifyDefFile nonblocker inca.def  10m_winds_method ${inca_UserChoices_10m_winds_method} 
     205    fi 
     206 
     207 
     208    if [ ! X${inca_UserChoices_wind_parameter} = X ] ; then  
     209        if [  X${inca_UserChoices_10m_winds_method} = Xthreshold ] ; then  
     210            IGCM_comp_modifyDefFile nonblocker inca.def  tref ${inca_UserChoices_wind_parameter} 
     211            IGCM_comp_modifyDefFile nonblocker inca.def  kref DEFAULT 
     212        else 
     213            IGCM_comp_modifyDefFile nonblocker inca.def  kref ${inca_UserChoices_wind_parameter} 
     214            IGCM_comp_modifyDefFile nonblocker inca.def  tref DEFAULT 
     215        fi 
     216    else 
     217            IGCM_comp_modifyDefFile nonblocker inca.def  kref DEFAULT 
     218            IGCM_comp_modifyDefFile nonblocker inca.def  tref DEFAULT 
     219    fi 
     220 
     221    if [  X${inca_UserChoices_seasalt_corr} = X ] ; then 
     222    IGCM_comp_modifyDefFile nonblocker inca.def  ss_corr  DEFAULT 
     223    else 
     224    IGCM_comp_modifyDefFile nonblocker inca.def  ss_corr ${inca_UserChoices_seasalt_corr} 
     225    fi 
     226 
     227 
    150228 
    151229    # inca.def : choose write frequency for inca_avgr in inca.card 
     
    191269    fi 
    192270     
     271    #inca.def : choose time interpolation for sflx.nc 
     272    if [ ! X${inca_UserChoices_emi_interp_time} = X ]; then  
     273        IGCM_comp_modifyDefFile nonblocker inca.def emi_interp_time ${inca_UserChoices_emi_interp_time} 
     274    else 
     275        IGCM_comp_modifyDefFile nonblocker inca.def emi_interp_time 1 
     276    fi 
    193277 
    194278    #inca.def : choose output library  
     
    205289    fi 
    206290 
    207  
    208     if [  X${inca_UserChoices_10m_winds_method} = X ] ; then 
    209     IGCM_comp_modifyDefFile nonblocker inca.def  10m_winds_method  threshold 
    210     else 
    211     IGCM_comp_modifyDefFile nonblocker inca.def  10m_winds_method ${inca_UserChoices_10m_winds_method} 
    212     fi 
    213291 
    214292 
Note: See TracChangeset for help on using the changeset viewer.