Changeset 3338 for LMDZ6


Ignore:
Timestamp:
May 31, 2018, 5:10:35 PM (6 years ago)
Author:
acozic
Message:

Add a flag chemistry_couple to give the choice between use O3 read in offline files or O3 calcul by Inca model

Location:
LMDZ6/trunk/libf
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dynphy_lonlat/phylmd/etat0phys_netcdf.F90

    r2899 r3338  
    110110  INTEGER :: iflag_radia, iflag_cldcon, iflag_ratqs
    111111  REAL    :: ratqsbas, ratqshaut, tau_ratqs
    112   LOGICAL :: ok_ade, ok_aie, ok_alw, ok_cdnc, aerosol_couple
     112  LOGICAL :: ok_ade, ok_aie, ok_alw, ok_cdnc, aerosol_couple, chemistry_couple
    113113  INTEGER :: flag_aerosol
    114114  INTEGER :: flag_aerosol_strat
     
    133133                   iflag_ratqs,ratqsbas,ratqshaut,tau_ratqs,            &
    134134                   ok_ade, ok_aie, ok_alw, ok_cdnc, aerosol_couple,     &
    135                    flag_aerosol, flag_aerosol_strat, new_aod,           &
    136                    flag_bc_internal_mixture, bl95_b0, bl95_b1,          &
    137                    read_climoz,                                         &
    138                    alp_offset)
     135                   chemistry_couple, flag_aerosol, flag_aerosol_strat,  &
     136                   new_aod, flag_bc_internal_mixture, bl95_b0, bl95_b1, &
     137                   read_climoz, alp_offset)
    139138  CALL phys_state_var_init(read_climoz)
    140139
  • LMDZ6/trunk/libf/phylmd/conf_phys_m.F90

    r3333 r3338  
    1717       iflag_cld_th, &
    1818       iflag_ratqs,ratqsbas,ratqshaut,tau_ratqs, &
    19        ok_ade, ok_aie, ok_alw, ok_cdnc, aerosol_couple, &
     19       ok_ade, ok_aie, ok_alw, ok_cdnc, aerosol_couple, chemistry_couple, &
    2020       flag_aerosol, flag_aerosol_strat, new_aod, &
    2121       flag_bc_internal_mixture, bl95_b0, bl95_b1,&
     
    7575    LOGICAL              :: ok_LES
    7676    LOGICAL              :: callstats
    77     LOGICAL              :: ok_ade, ok_aie, ok_alw, ok_cdnc, aerosol_couple
     77    LOGICAL              :: ok_ade, ok_aie, ok_alw, ok_cdnc
     78    LOGICAL              :: aerosol_couple, chemistry_couple
    7879    INTEGER              :: flag_aerosol
    7980    INTEGER              :: flag_aerosol_strat
     
    9596    LOGICAL, SAVE       :: ok_LES_omp   
    9697    LOGICAL, SAVE       :: callstats_omp
    97     LOGICAL, SAVE       :: ok_ade_omp, ok_aie_omp, ok_alw_omp, ok_cdnc_omp, aerosol_couple_omp
     98    LOGICAL, SAVE       :: ok_ade_omp, ok_aie_omp, ok_alw_omp, ok_cdnc_omp
     99    LOGICAL, SAVE       :: aerosol_couple_omp, chemistry_couple_omp
    98100    INTEGER, SAVE       :: flag_aerosol_omp
    99101    INTEGER, SAVE       :: flag_aerosol_strat_omp
     
    403405    CALL getin('aerosol_couple',aerosol_couple_omp)
    404406    !
     407    !Config Key  = chemistry_couple
     408    !Config Desc = read O3 chemistry in file or calcul by inca
     409    !Config Def  = .FALSE.
     410    !Config Help = Used in physiq.F
     411    !
     412    chemistry_couple_omp = .FALSE.
     413    CALL getin('chemistry_couple',chemistry_couple_omp)
     414    !
    405415    !Config Key  = flag_aerosol
    406416    !Config Desc = which aerosol is use for coupled model
     
    22732283    ok_cdnc = ok_cdnc_omp
    22742284    aerosol_couple = aerosol_couple_omp
     2285    chemistry_couple = chemistry_couple_omp
    22752286    flag_aerosol=flag_aerosol_omp
    22762287    flag_aerosol_strat=flag_aerosol_strat_omp
     
    24542465       CALL abort_physic('conf_phys', 'flag_aerosol cannot be to zero if aerosol_couple=y ', 1)
    24552466    ENDIF
     2467
     2468    ! Read_climoz need to be zero if we are in couple mode for chemistry
     2469    IF (chemistry_couple .AND. read_climoz .ne. 0) THEN
     2470       CALL abort_physic('conf_phys', 'read_climoz need to be to zero if chemistry_couple=y ', 1)
     2471    ENDIF
     2472
    24562473
    24572474    ! flag_aerosol need to be different to zero if ok_cdnc is activated
     
    25992616    write(lunout,*)' ok_alw = ',ok_alw
    26002617    write(lunout,*)' aerosol_couple = ', aerosol_couple
     2618    write(lunout,*)' chemistry_couple = ', chemistry_couple
    26012619    write(lunout,*)' flag_aerosol = ', flag_aerosol
    26022620    write(lunout,*)' flag_aerosol_strat= ', flag_aerosol_strat
  • LMDZ6/trunk/libf/phylmd/physiq_mod.F90

    r3327 r3338  
    10501050    ! false : lecture des aerosol dans un fichier
    10511051    !$OMP THREADPRIVATE(aerosol_couple)   
     1052    LOGICAL, SAVE :: chemistry_couple ! true  : use INCA chemistry O3
     1053    ! false : use offline chemistry O3
     1054    !$OMP THREADPRIVATE(chemistry_couple)   
    10521055    INTEGER, SAVE :: flag_aerosol
    10531056    !$OMP THREADPRIVATE(flag_aerosol)
     
    12161219            fact_cldcon, facttemps,ok_newmicro,iflag_radia, &
    12171220            iflag_cld_th,iflag_ratqs,ratqsbas,ratqshaut,tau_ratqs, &
    1218             ok_ade, ok_aie, ok_alw, ok_cdnc, aerosol_couple,  &
     1221            ok_ade, ok_aie, ok_alw, ok_cdnc, aerosol_couple,  chemistry_couple, &
    12191222            flag_aerosol, flag_aerosol_strat, new_aod, &
    12201223            flag_bc_internal_mixture, bl95_b0, bl95_b1, &
     
    38343837#ifdef INCA
    38353838          CALL radlwsw_inca  &
    3836                (kdlon,kflev,dist, rmu0, fract, solaire, &
     3839               (chemistry_couple, kdlon,kflev,dist, rmu0, fract, solaire, &
    38373840               paprs, pplay,zxtsol,albsol1, albsol2, t_seri,q_seri, &
    38383841               size(wo,3), wo, &
Note: See TracChangeset for help on using the changeset viewer.