Ignore:
Timestamp:
Jan 30, 2023, 9:27:31 PM (17 months ago)
Author:
dcugnet
Message:
  • fix for isotopic tagging tracers
  • modify strHead/strTail: last argument (optional) has the same convention as INDEX: if lBackward==.TRUE., search the pattern starting from the end of the string (default=.FALSE.)
  • consolidate and simplify the new2oldH2O routine
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/phylmdiso/isotrac_mod.F90

    r4325 r4403  
    149149   USE isotopes_mod, ONLY: iso_eau, ntracisoOR, initialisation_iso
    150150   USE dimphy,       ONLY: klon, klev
    151    USE  strings_mod, ONLY: int2str, strStack, strTail, strHead, fmsg
     151   USE  strings_mod, ONLY: int2str, strStack, strTail, strHead, strIdx, fmsg
    152152
    153153   IMPLICIT NONE
     
    658658   END DO
    659659
    660    index_zone = [(INDEX(isoZone, strTail(         isoName(ixt) ,'_')), ixt=1, ntiso)]
    661    index_iso  = [(INDEX(isoName, strHead(delPhase(isoName(ixt)),'_')), ixt=1, ntiso)]
     660   index_zone = [(strIdx(isoZone, strTail(isoName(ixt) ,'_',.TRUE.)), ixt=1, ntiso)]
     661   index_iso  = [(strIdx(isoName, strHead(isoName(ixt) ,'_',.TRUE.)), ixt=1, ntiso)]
    662662   itZonIso_loc = itZonIso(:,:)
    663663#ifdef ISOVERIF
Note: See TracChangeset for help on using the changeset viewer.