Ignore:
Timestamp:
Jul 19, 2022, 1:33:28 PM (2 years ago)
Author:
lguez
Message:

Sync latest trunk changes to branch LMDZ_ECRad.

Location:
LMDZ6/branches/LMDZ_ECRad
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/LMDZ_ECRad

  • LMDZ6/branches/LMDZ_ECRad/libf/dyn3d_common/infotrac.F90

    r4172 r4203  
    77   USE readTracFiles_mod, ONLY: trac_type, readTracersFiles, addPhase, indexUpdate,  nphases, ancestor,  &
    88                                isot_type, old2newName,      delPhase,               getKey_init, tran0, &
    9                                 keys_type, initIsotopes,     getPhase, known_phases, getKey, setGeneration
     9                                keys_type, initIsotopes,     getPhase, known_phases, getKey, setGeneration, &
     10                                maxTableWidth
    1011   IMPLICIT NONE
    1112
     
    274275      ttr(1+nqo+nqCO2:nqtrue)%parent      = tran0
    275276      ttr(1+nqo+nqCO2:nqtrue)%phase       = 'g'
    276       lerr = getKey('hadv', had, ky=ttr(:)%keys); hadv(:) = [had, hadv_inca]
    277       lerr = getKey('vadv', vad, ky=ttr(:)%keys); vadv(:) = [vad, vadv_inca]
     277      lerr = getKey('hadv', had, ky=tracers(:)%keys)
     278      lerr = getKey('vadv', vad, ky=tracers(:)%keys)
     279      hadv(1:nqo) = had(:); hadv(nqo+1:nqtrue) = hadv_inca
     280      vadv(1:nqo) = vad(:); vadv(nqo+1:nqtrue) = vadv_inca
    278281      CALL MOVE_ALLOC(FROM=ttr, TO=tracers)
    279282      CALL setGeneration(tracers)                                    !--- SET FIELDS %iGeneration, %gen0Name
     
    402405
    403406   niso = 0; nzone=0; nphas=nqo; ntiso = 0; isoCheck=.FALSE.
    404    CALL initIsotopes(tracers, isotopes)
     407   IF(initIsotopes(tracers, isotopes)) CALL abort_gcm(modname, 'Problem when reading isotopes parameters', 1)
    405408   nbIso = SIZE(isotopes)
    406409   nqtottr = nqtot - COUNT(tracers%gen0Name == 'H2O' .AND. tracers%component == 'lmdz')
     
    461464                                                                                  bool2str(t%isInPhysics)),&
    462465      cat([(iq, iq=1, nqtot)], t%iadv, t%iGeneration, t%iqParent, t%nqDescen, t%nqChilds, t%iso_iGroup,    &
    463                                                     t%iso_iName, t%iso_iZone, t%iso_iPhase), sub=modname)) &
     466                  t%iso_iName, t%iso_iZone, t%iso_iPhase), nColMax=maxTableWidth, nHead=2, sub=modname))  &
    464467      CALL abort_gcm(modname, "problem with the tracers table content", 1)
    465468   IF(niso > 0) THEN
Note: See TracChangeset for help on using the changeset viewer.