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/dyn3d/iniacademic.F90

    r4124 r4143  
    55
    66  USE filtreg_mod, ONLY: inifilr
    7   USE infotrac,    ONLY: nqtot, niso, niso_possibles, ok_iso_verif, tnat, alpha_ideal, &
    8                          iqiso, tracers, iso_indnum, iso_num
     7  USE infotrac,    ONLY: nqtot, niso, tnat, alpha_ideal, iqIsoPha, tracers
    98  USE control_mod, ONLY: day_step,planet_type
    109  use exner_hyb_m, only: exner_hyb
     
    282281              ! CRisi: init des isotopes
    283282              ! distill de Rayleigh très simplifiée
    284 !             iName    = tracers(iq)%iso_iName  ! (next commit)
    285               iName    = iso_num(iq)
     283              iName    = tracers(iq)%iso_iName
    286284              if (niso <= 0 .OR. iName <= 0) CYCLE
    287285              iPhase   = tracers(iq)%iso_iPhase
     
    290288                 q(:,:,iq) = q(:,:,iqParent)*tnat(iName)*(q(:,:,iqParent)/30.e-3)**(alpha_ideal(iName)-1.)
    291289              ELSE
    292                  q(:,:,iq) = q(:,:,iqiso(iso_indnum(iq),iPhase))
     290                 q(:,:,iq) = q(:,:,iqIsoPha(iName,iPhase))
    293291              END IF
    294292           enddo
     
    297295        endif ! of if (planet_type=="earth")
    298296
    299         if (ok_iso_verif) call check_isotopes_seq(q,1,ip1jmp1,'iniacademic_loc')
     297        call check_isotopes_seq(q,1,ip1jmp1,'iniacademic_loc')
    300298
    301299        ! add random perturbation to temperature
Note: See TracChangeset for help on using the changeset viewer.