Ignore:
Timestamp:
Jan 16, 2025, 8:14:15 PM (13 hours ago)
Author:
dcugnet
Message:

Remove tracers attributes "isAdvected" and "isInPhysics" from infotrac (iadv is enough).
Remove tracers attribute "isAdvected" from infotrac_phy (isInPhysics is now equivalent
to former isInPhysics .AND. iadv > 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmd/infotrac_phy.F90

    r5475 r5481  
    8080!  | nqDescen    | Number of the descendants   (all generations)        | nqdesc      | 1:nqtot                |
    8181!  | nqChildren  | Number of childs            (1st generation only)    | nqfils      | 1:nqtot                |
    82 !  | isAdvected  | Advected tracers flag (.TRUE. if iadv >= 0)          | /           | nqtrue  .TRUE. values  |
    83 !  | isInPhysics | Tracers not extracted from the main table in physics | /           | nqtottr .TRUE. values  |
     82!  | isInPhysics | Advected tracers from the main table kept in physics | /           | nqtottr .TRUE. values  |
    8483!  | iso_iGroup  | Isotopes group index in isotopes(:)                  | /           | 1:nbIso                |
    8584!  | iso_iName   | Isotope  name  index in isotopes(iso_iGroup)%trac(:) | iso_indnum  | 1:niso                 |
     
    284283
    285284!==============================================================================================================================
    286 ! 3) Determine the advection scheme ; needed to compute the full tracers list, the long names, nqtot and %isAdvected
     285! 3) Determine the advection scheme ; needed to compute the full tracers list, the long names and nqtot
    287286!==============================================================================================================================
    288287   ALLOCATE(ttr(nqtot))
    289    jq = nqtrue+1; tracers(:)%iadv = -1
     288   jq = nqtrue+1
    290289   DO iq = 1, nqtrue
    291290      t1 => tracers(iq)
     
    298297      IF(iad == -1) CALL abort_physic(modname, msg1, 1)
    299298
    300       !--- SET FIELDS longName, isAdvected, isInPhysics
     299      !--- SET FIELDS longName, isInPhysics
    301300      t1%longName   = t1%name; IF(iad > 0) t1%longName=TRIM(t1%name)//descrq(iad)
    302       t1%isAdvected = iad >= 0
    303       t1%isInPhysics= delPhase(t1%gen0Name) /= 'H2O' .OR. t1%component /= 'lmdz' !=== MORE EXCEPTIONS ? CO2i, SURSAT CLOUD H2O
     301      t1%isInPhysics= iad >= 0 .AND. (delPhase(t1%gen0Name) /= 'H2O' .OR. t1%component /= 'lmdz')
    304302      ttr(iq)       = t1
    305303
     
    314312      ttr(jq+1:jq+nm)%parent      = [ (TRIM(t1%parent)  //'-'//TRIM(suff(im)), im=1, nm) ]
    315313      ttr(jq+1:jq+nm)%longName    = [ (TRIM(t1%longName)//'-'//TRIM(suff(im)), im=1, nm) ]
    316       ttr(jq+1:jq+nm)%isAdvected  = [ (.FALSE., im=1, nm) ]
    317314      ttr(jq+1:jq+nm)%isInPhysics = [ (.FALSE., im=1, nm) ]
    318315      jq = jq + nm
     
    383380   t => tracers
    384381   CALL msg('Information stored in '//TRIM(modname)//': ', modname)
    385    IF(dispTable('isssssssssiiiiiiii', ['iq  ', 'name', 'lNam', 'g0Nm', 'prnt', 'type', 'phas', 'comp',     &
    386                        'isPh', 'isAd', 'iGen', 'iqPr', 'nqDe', 'nqCh', 'iGrp', 'iNam', 'iZon', 'iPha'],    &
    387       cat(t%name, t%longName, t%gen0Name, t%parent, t%type, t%phase, t%component,                          &
    388                                                          bool2str(t%isInPhysics), bool2str(t%isAdvected)), &
     382   IF(dispTable('issssssssiiiiiiii', ['iq  ', 'name', 'lNam', 'g0Nm', 'prnt', 'type', 'phas', 'comp',      &
     383                              'isPh', 'iGen', 'iqPr', 'nqDe', 'nqCh', 'iGrp', 'iNam', 'iZon', 'iPha'],     &
     384      cat(t%name, t%longName, t%gen0Name, t%parent, t%type, t%phase, t%component, bool2str(t%isInPhysics)),&
    389385      cat([(iq, iq=1, nqtot)], t%iGeneration, t%iqParent, t%nqDescen, t%nqChildren, t%iso_iGroup,          &
    390386                  t%iso_iName, t%iso_iZone, t%iso_iPhase), nColMax=maxTableWidth, nHead=2, sub=modname))   &
Note: See TracChangeset for help on using the changeset viewer.