Changeset 4124 for LMDZ6/trunk/libf/dyn3d_common
- Timestamp:
- Apr 8, 2022, 4:47:04 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/dyn3d_common/infotrac.F90
r4122 r4124 16 16 PUBLIC :: tracers, type_trac !--- Full tracers database, tracers type keyword 17 17 PUBLIC :: nqtot, nbtr, nqo, nqCO2, nqtottr !--- Main dimensions 18 PUBLIC :: solsym, conv_flg, pbl_flg !--- Tracers names + convection & boundary layer activation keys18 PUBLIC :: conv_flg, pbl_flg !--- Convection & boundary layer activation keys 19 19 20 20 !=== FOR ISOTOPES: General … … 36 36 !=== OLD QUANTITIES OR ALIASES FOR OLDER NAMES (TO BE REMOVED SOON) 37 37 PUBLIC :: ntraciso, ntraceurs_zone 38 PUBLIC :: ok_iso topes, ok_iso_verif, ok_isotrac, use_iso38 PUBLIC :: ok_iso_verif, use_iso 39 39 PUBLIC :: iso_num, iso_indnum, indnum_fn_num, niso_possibles 40 40 PUBLIC :: qperemin, masseqmin, ratiomin … … 139 139 REAL, SAVE :: qperemin, masseqmin, ratiomin 140 140 INTEGER, SAVE :: niso_possibles 141 LOGICAL, SAVE :: ok_iso topes, ok_iso_verif, ok_isotrac141 LOGICAL, SAVE :: ok_iso_verif 142 142 LOGICAL, SAVE, ALLOCATABLE :: use_iso(:) 143 143 INTEGER, SAVE, ALLOCATABLE :: iso_num(:) !--- idx in [1,niso_possibles] = f(1<=iq <=nqtot) … … 150 150 INTEGER, SAVE, ALLOCATABLE :: conv_flg(:), & !--- Convection activation ; needed for INCA (nbtr) 151 151 pbl_flg(:) !--- Boundary layer activation ; needed for INCA (nbtr) 152 CHARACTER(LEN=8), SAVE, ALLOCATABLE :: solsym(:) !--- Names from INCA (nbtr)153 152 LOGICAL, PARAMETER :: lOldCode = .TRUE. 154 153 … … 379 378 IF(ALL([2,3] /= nqo)) CALL abort_gcm(modname, 'Only 2 or 3 water phases allowed ; found nqo='//TRIM(int2str(nqo)), 1) 380 379 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)) 382 381 CALL init_transport(hadv_inca, vadv_inca, conv_flg_inca, pbl_flg_inca, solsym_inca) 383 382 !--- Passive CO2 tracer is at position 1 because: H2O has been removed ; nqCO2/=0 in "inco" case only 384 383 conv_flg(1:nbtr) = [(1, k=1, nqCO2), conv_flg_inca] 385 384 pbl_flg(1:nbtr) = [(1, k=1, nqCO2), pbl_flg_inca] 386 solsym (1:nbtr) = [('CO2 ', k=1, nqCO2), solsym_inca]387 385 ALLOCATE(ttr(nqtrue)) 388 386 ttr(1:nqo+nqCO2) = tracers … … 390 388 ttr(1+nqo:nqCO2+nqo )%component = 'co2i' 391 389 ttr(1+nqo+nqCO2:nqtrue)%component = 'inca' 392 ttr(1+nqo :nqtrue)%name = solsym390 ttr(1+nqo :nqtrue)%name = [('CO2 ', k=1, nqCO2), solsym_inca] 393 391 ttr(1+nqo+nqCO2:nqtrue)%parent = tran0 394 392 ttr(1+nqo+nqCO2:nqtrue)%phase = 'g' … … 409 407 lerr = getKey('hadv', hadv, ky=tracers(:)%keys) 410 408 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)) 412 410 conv_flg(1:nbtr) = [(1, it=1, nbtr)] !--- Convection activated for all tracers 413 411 pbl_flg(1:nbtr) = [(1, it=1, nbtr)] !--- Boundary layer activated for all tracers … … 534 532 nqtottr = nqtot-nqo*(1+ntiso) !--- NO H2O-FAMILY TRACER IS PASSED TO THE PHYSICS 535 533 536 ALLOCATE(conv_flg(nbtr), pbl_flg(nbtr) , solsym(nbtr))534 ALLOCATE(conv_flg(nbtr), pbl_flg(nbtr)) 537 535 #ifndef INCA 538 536 conv_flg(1:nbtr) = 1 !--- Convection activated for all tracers … … 540 538 #else 541 539 !--- 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] 545 542 #endif 546 543 … … 798 795 799 796 !--- Isotopic quantities (to be removed soon) 800 ok_isotopes = i%niso > 0801 ok_isotrac = i%nzone > 0802 797 ok_iso_verif = i%check 803 798 niso_possibles = SIZE(tnom_iso)
Note: See TracChangeset
for help on using the changeset viewer.