Ignore:
Timestamp:
May 9, 2022, 12:35:40 PM (2 years ago)
Author:
dcugnet
Message:
  • Some variables are renamed or replaced by direct equivalents:
    • iso_indnum -> tracers(:)%iso_iName
    • niso_possibles -> niso
    • iqiso -> iqIsoPha ; index_trac -> itZonIso
    • ok_iso_verif -> isoCheck
    • ntraceurs_zone -> nzone ; ntraciso -> ntiso
    • qperemin -> min_qparent ; masseqmin -> min_qmass ; ratiomin -> min_ratio
  • Some renamed variables are only aliased with the older name (using USE <module>, ONLY: <oldName> => <newName>) in routines where they are repeated many times.
  • Few hard-coded indexes are now computed (examples: ilic, iso, ivap, irneb, iq_vap, iq_liq, iso_H2O, iso_HDO, iso_HTO, iso_O17, iso_O18).
  • The IF(isoCheck) test is now embedded in the check_isotopes_seq and check_isotopes_loc routines (lighter calling).
File:
1 edited

Legend:

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

    r4089 r4143  
    3030      USE print_control_mod, ONLY: prt_level,lunout
    3131#ifdef ISO
    32       use infotrac_phy, ONLY: ntraciso
     32      use infotrac_phy, ONLY: ntiso
    3333#ifdef ISOVERIF
    3434      USE isotopes_mod, ONLY: iso_eau,iso_HDO
     
    145145
    146146#ifdef ISO
    147       REAL xt_seri(ntraciso,klon,klev),xtmemoire(ntraciso,klon,klev)
    148       REAL d_xt_ajs(ntraciso,klon,klev)
    149       real d_xt_the(ntraciso,klon,klev)
     147      REAL xt_seri(ntiso,klon,klev),xtmemoire(ntiso,klon,klev)
     148      REAL d_xt_ajs(ntiso,klon,klev)
     149      real d_xt_the(ntiso,klon,klev)
    150150#ifdef DIAGISO
    151151      real q_the(klon,klev)
    152       real xt_the(ntraciso,klon,klev)
     152      real xt_the(ntiso,klon,klev)
    153153#endif
    154154      real qprec(klon,klev)
     
    205205                nbptspb=nbptspb+1
    206206#ifdef ISO
    207                 do ixt=1,ntraciso
     207                do ixt=1,ntiso
    208208                  xt_seri(ixt,i,k)=1.e-15*(xt_seri(ixt,i,k)/qprec(i,k))
    209209                  ! xt_seri(ixt,i,k)=1.e-15*(Rdefault(index_iso(ixt)))
     
    228228       call iso_verif_egalite_vect2D( &
    229229     &           xt_seri,q_seri, &
    230      &           'calltherm 174',ntraciso,klon,klev)
     230     &           'calltherm 174',ntiso,klon,klev)
    231231      endif !if (iso_eau.gt.0) then
    232232#endif   
     
    360360     &       +zdetr_therm(:,k)*fact(:)
    361361#ifdef ISO
    362             do ixt=1,ntraciso
     362            do ixt=1,ntiso
    363363              d_xt_the(ixt,:,k)=d_xt_the(ixt,:,k)*dtime*fact(:)
    364364            enddo
     
    398398      call iso_verif_aberrant_enc_vect2D( &
    399399     &        xt_seri,q_seri, &
    400      &        'calltherm 353, apres ajout d_xt_the',ntraciso,klon,klev)
     400     &        'calltherm 353, apres ajout d_xt_the',ntiso,klon,klev)
    401401      endif     
    402402#endif
     
    424424                nbptspb=nbptspb+1
    425425#ifdef ISO
    426                 do ixt=1,ntraciso
     426                do ixt=1,ntiso
    427427                  xt_seri(ixt,i,k)=1.e-15*(xtmemoire(ixt,i,k)/qmemoire(i,k))
    428428                enddo
     
    440440      call iso_verif_aberrant_enc_vect2D( &
    441441     &        xt_seri,q_seri, &
    442      &        'calltherm 393, apres bidouille q<0',ntraciso,klon,klev)
     442     &        'calltherm 393, apres bidouille q<0',ntiso,klon,klev)
    443443      endif     
    444444#endif
Note: See TracChangeset for help on using the changeset viewer.