Ignore:
Timestamp:
Oct 29, 2022, 8:09:31 PM (2 years ago)
Author:
emillour
Message:

Generic GCM:
Minor fix related to the RGCS scheme: when not using it, "iaero_generic(1)"
was tested although not defined; using tests on "aerogeneric" (number
of generic aerosols) works better.
EM

Location:
trunk/LMDZ.GENERIC/libf/phystd
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/aeropacity.F90

    r2804 r2810  
    33
    44       use radinc_h, only : L_TAUMAX,naerkind
    5        use aerosol_mod
     5       use aerosol_mod, only: iaero_nlay, iaero_generic, &
     6                              iaero_aurora, iaero_back2lay, iaero_co2, &
     7                              iaero_dust, iaero_h2o, iaero_h2so4, &
     8                              iaero_nh3, i_rgcs_ice, noaero
    69       USE tracer_h, only: noms,rho_co2,rho_ice,rho_q,mmol
    710       use comcstfi_mod, only: g, pi, mugaz, avocado
     
    145148          print*,'iaero_aurora= ',iaero_aurora
    146149        endif
    147         if (iaero_generic(1) .ne. 0) then
     150        if (aerogeneric .ne. 0) then
    148151          print*,"iaero_generic= ",iaero_generic(:)
    149152        endif
     
    658661!    Lucas Teinturier (2022)
    659662!===========================================================================
    660       if (iaero_generic(1) .ne. 0) then ! we enter the scheme
     663      if (aerogeneric .ne. 0) then ! we enter the scheme
    661664        do ia=1,aerogeneric
    662665          iaer = iaero_generic(ia)
     
    674677          enddo !ig=1,ngrid
    675678        enddo !ia=1,aerogeneric
    676       endif !iaergo_generic(1) .ne. 0
     679      endif !aerogeneric .ne. 0
    677680
    678681! --------------------------------------------------------------------------
  • trunk/LMDZ.GENERIC/libf/phystd/callkeys_mod.F90

    r2803 r2810  
    88      logical,save :: season,diurnal,tlocked,rings_shadow,lwrite
    99!$OMP THREADPRIVATE(season,diurnal,tlocked,rings_shadow,lwrite)
    10       logical,save :: callstats,calleofdump
    11 !$OMP THREADPRIVATE(callstats,calleofdump)
     10      logical,save :: callstats ! .true. to output stats.nc files
     11!$OMP THREADPRIVATE(callstats)
    1212      logical,save :: callgasvis,continuum,graybody
    1313!$OMP THREADPRIVATE(callgasvis,continuum,graybody)
     
    5050      logical,save :: aerofixco2,aerofixh2o
    5151!$OMP THREADPRIVATE(aerofixco2,aerofixh2o)
    52       integer,save :: aerogeneric
     52      integer,save :: aerogeneric ! number of aerosols of "generic" kind
    5353!$OMP THREADPRIVATE(aerogeneric)
    5454      logical,save :: hydrology
Note: See TracChangeset for help on using the changeset viewer.