Ignore:
Timestamp:
Apr 8, 2022, 4:47:04 PM (2 years ago)
Author:
dcugnet
Message:

Remove solsym, ok_isotopes (=niso>0), ok_isotrac (=nzone>0)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dyn3d_common/infotrac.F90

    r4122 r4124  
    1616   PUBLIC :: tracers, type_trac                            !--- Full tracers database, tracers type keyword
    1717   PUBLIC :: nqtot,   nbtr,   nqo,   nqCO2,   nqtottr      !--- Main dimensions
    18    PUBLIC :: solsym, conv_flg, pbl_flg                     !--- Tracers names + convection & boundary layer activation keys
     18   PUBLIC :: conv_flg, pbl_flg                             !--- Convection & boundary layer activation keys
    1919
    2020   !=== FOR ISOTOPES: General
     
    3636   !=== OLD QUANTITIES OR ALIASES FOR OLDER NAMES (TO BE REMOVED SOON)
    3737   PUBLIC :: ntraciso, ntraceurs_zone
    38    PUBLIC :: ok_isotopes, ok_iso_verif, ok_isotrac, use_iso
     38   PUBLIC :: ok_iso_verif, use_iso
    3939   PUBLIC :: iso_num, iso_indnum, indnum_fn_num, niso_possibles
    4040   PUBLIC :: qperemin, masseqmin, ratiomin
     
    139139   REAL,    SAVE :: qperemin, masseqmin, ratiomin
    140140   INTEGER, SAVE :: niso_possibles
    141    LOGICAL, SAVE :: ok_isotopes, ok_iso_verif, ok_isotrac
     141   LOGICAL, SAVE :: ok_iso_verif
    142142   LOGICAL, SAVE, ALLOCATABLE ::       use_iso(:)
    143143   INTEGER, SAVE, ALLOCATABLE ::       iso_num(:)               !--- idx in [1,niso_possibles] = f(1<=iq <=nqtot)
     
    150150   INTEGER,             SAVE, ALLOCATABLE :: conv_flg(:), &     !--- Convection     activation ; needed for INCA        (nbtr)
    151151                                              pbl_flg(:)        !--- Boundary layer activation ; needed for INCA        (nbtr)
    152    CHARACTER(LEN=8),    SAVE, ALLOCATABLE ::   solsym(:)        !--- Names from INCA                                    (nbtr)
    153152   LOGICAL, PARAMETER :: lOldCode = .TRUE.
    154153
     
    379378      IF(ALL([2,3] /= nqo)) CALL abort_gcm(modname, 'Only 2 or 3 water phases allowed ; found nqo='//TRIM(int2str(nqo)), 1)
    380379      ALLOCATE(hadv(nqtrue), conv_flg(nbtr), hadv_inca(nqINCA), conv_flg_inca(nqINCA), solsym_inca(nqINCA))
    381       ALLOCATE(vadv(nqtrue),  pbl_flg(nbtr), vadv_inca(nqINCA),  pbl_flg_inca(nqINCA), solsym(nbtr))
     380      ALLOCATE(vadv(nqtrue),  pbl_flg(nbtr), vadv_inca(nqINCA),  pbl_flg_inca(nqINCA))
    382381      CALL init_transport(hadv_inca, vadv_inca, conv_flg_inca, pbl_flg_inca, solsym_inca)
    383382      !--- Passive CO2 tracer is at position 1 because: H2O has been removed ; nqCO2/=0 in "inco" case only
    384383      conv_flg(1:nbtr) = [(1,          k=1, nqCO2), conv_flg_inca]
    385384       pbl_flg(1:nbtr) = [(1,          k=1, nqCO2),  pbl_flg_inca]
    386        solsym (1:nbtr) = [('CO2     ', k=1, nqCO2),   solsym_inca]
    387385      ALLOCATE(ttr(nqtrue))
    388386      ttr(1:nqo+nqCO2)                    = tracers
     
    390388      ttr(1+nqo:nqCO2+nqo   )%component   = 'co2i'
    391389      ttr(1+nqo+nqCO2:nqtrue)%component   = 'inca'
    392       ttr(1+nqo      :nqtrue)%name        = solsym
     390      ttr(1+nqo      :nqtrue)%name        = [('CO2     ', k=1, nqCO2), solsym_inca]
    393391      ttr(1+nqo+nqCO2:nqtrue)%parent      = tran0
    394392      ttr(1+nqo+nqCO2:nqtrue)%phase       = 'g'
     
    409407      lerr = getKey('hadv', hadv, ky=tracers(:)%keys)
    410408      lerr = getKey('vadv', vadv, ky=tracers(:)%keys)
    411       ALLOCATE(conv_flg(nbtr), pbl_flg(nbtr), solsym(nbtr))
     409      ALLOCATE(conv_flg(nbtr), pbl_flg(nbtr))
    412410      conv_flg(1:nbtr) = [(1, it=1, nbtr)]                           !--- Convection activated for all tracers
    413411       pbl_flg(1:nbtr) = [(1, it=1, nbtr)]                           !--- Boundary layer activated for all tracers
     
    534532   nqtottr = nqtot-nqo*(1+ntiso)            !--- NO H2O-FAMILY    TRACER  IS      PASSED TO THE PHYSICS
    535533
    536    ALLOCATE(conv_flg(nbtr), pbl_flg(nbtr), solsym(nbtr))
     534   ALLOCATE(conv_flg(nbtr), pbl_flg(nbtr))
    537535#ifndef INCA
    538536   conv_flg(1:nbtr) = 1                                              !--- Convection activated for all tracers
     
    540538#else
    541539   !--- Passive CO2 tracer is at position 1 because: H2O has been removed ; nqCO2/=0 in "inco" case only
    542    conv_flg(1:nbtr) = [(  1,        ic=1, nqCO2),conv_flg_inca]
    543     pbl_flg(1:nbtr) = [(  1,        ic=1, nqCO2), pbl_flg_inca]
    544      solsym(1:nbtr) = [('CO2     ', ic=1, nqCO2),  solsym_inca]
     540   conv_flg(1:nbtr) = [(1, ic=1, nqCO2),conv_flg_inca]
     541    pbl_flg(1:nbtr) = [(1, ic=1, nqCO2), pbl_flg_inca]
    545542#endif
    546543
     
    798795
    799796   !--- Isotopic quantities (to be removed soon)
    800    ok_isotopes   = i%niso  > 0
    801    ok_isotrac    = i%nzone > 0
    802797   ok_iso_verif  = i%check
    803798   niso_possibles = SIZE(tnom_iso)
Note: See TracChangeset for help on using the changeset viewer.