Changeset 10


Ignore:
Timestamp:
Jan 31, 2022, 9:24:36 PM (3 years ago)
Author:
dcugnet
Message:

The key %isH2Ofamily, from the derived type "trac_type", is replaced with the more general

key %isInPhysics, which is TRUE for tracers both in "qx" and "tr_seri".

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • readTracFiles_mod.f90

    r7 r10  
    182182      IF(test(cumulTracers(dBase, tracs), lerr)) RETURN
    183183    END IF
    184     WHERE(tracs%gen0Name(1:3) == 'H2O') tracs%isH2Ofamily=.TRUE.     !--- Set %isH2Ofamily: belongs to H2O family
     184    WHERE(tracs%gen0Name(1:3) /= 'H2O') tracs%isInPhysics=.TRUE.     !--- Set %isInPhysics: passed to physics
    185185    CALL setDirectKeys(tracs)                                        !--- Set %iqParent, %iqDescen, %nqDescen, %nqChilds
    186186  END IF
     
    13721372
    13731373END MODULE readTracFiles_mod
    1374 
  • trac_types_mod.F90

    r6 r10  
    2323    INTEGER               :: iadv        = 10              !--- Advection scheme used
    2424    INTEGER               :: iGeneration = -1              !--- Generation number (>=0)
    25     LOGICAL               :: isAdvected  = .FALSE.         !--- "true" tracers: iadv > 0 . COUNT(     isAdvected) =nqtrue
    26     LOGICAL               :: isH2Ofamily = .FALSE.         !--- H2O tracers/isotopes/tags. COUNT(.NOT.isH2Ofamily)=nqtottr
     25    LOGICAL               :: isAdvected  = .FALSE.         !--- "true" tracers: iadv > 0.   COUNT(isAdvected )=nqtrue
     26    LOGICAL               :: isInPhysics = .TRUE.          !--- "true" tracers: in tr_seri. COUNT(isInPhysics)=nqtottr
    2727    INTEGER               :: iqParent    = 0               !--- Parent index
    2828    INTEGER,  ALLOCATABLE :: iqDescen(:)                   !--- Descendants index (in growing generation order)
Note: See TracChangeset for help on using the changeset viewer.