Ignore:
Timestamp:
Jun 1, 2018, 12:47:52 PM (7 years ago)
Author:
acozic
Message:

merge with rev 3338 of the trunk
(add a flag chemistry_couple to use Ozone offline or Ozone calcul by Inca)

Location:
LMDZ6/branches/IPSLCM6.0.15
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/IPSLCM6.0.15

  • LMDZ6/branches/IPSLCM6.0.15/libf/dynphy_lonlat/phylmd/etat0phys_netcdf.F90

    r2899 r3339  
    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/branches/IPSLCM6.0.15/libf/phylmd/conf_phys_m.F90

    r3337 r3339  
    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/branches/IPSLCM6.0.15/libf/phylmd/physiq_mod.F90

    r3328 r3339  
    10461046    ! false : lecture des aerosol dans un fichier
    10471047    !$OMP THREADPRIVATE(aerosol_couple)   
     1048    LOGICAL, SAVE :: chemistry_couple ! true  : use INCA chemistry O3
     1049    ! false : use offline chemistry O3
     1050    !$OMP THREADPRIVATE(chemistry_couple)   
    10481051    INTEGER, SAVE :: flag_aerosol
    10491052    !$OMP THREADPRIVATE(flag_aerosol)
     
    12121215            fact_cldcon, facttemps,ok_newmicro,iflag_radia, &
    12131216            iflag_cld_th,iflag_ratqs,ratqsbas,ratqshaut,tau_ratqs, &
    1214             ok_ade, ok_aie, ok_alw, ok_cdnc, aerosol_couple,  &
     1217            ok_ade, ok_aie, ok_alw, ok_cdnc, aerosol_couple,  chemistry_couple, &
    12151218            flag_aerosol, flag_aerosol_strat, new_aod, &
    12161219            flag_bc_internal_mixture, bl95_b0, bl95_b1, &
     
    38153818#ifdef INCA
    38163819          CALL radlwsw_inca  &
    3817                (kdlon,kflev,dist, rmu0, fract, solaire, &
     3820               (chemistry_couple, kdlon,kflev,dist, rmu0, fract, solaire, &
    38183821               paprs, pplay,zxtsol,albsol1, albsol2, t_seri,q_seri, &
    38193822               size(wo,3), wo, &
Note: See TracChangeset for help on using the changeset viewer.