Ignore:
Timestamp:
Sep 25, 2024, 12:03:08 PM (5 weeks ago)
Author:
abarral
Message:

Merge r5214

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/dyn3dmem/dynetat0_loc.f90

    r5223 r5229  
    88  USE parallel_lmdz
    99  USE lmdz_infotrac, ONLY: nqtot, tracers, niso, iqIsoPha, iH2O, isoName, &
    10           new2oldH2O, newHNO3, oldHNO3, getKey
     10          new2oldH2O, newHNO3, oldHNO3
    1111  USE lmdz_strings, ONLY: maxlen, msg, strStack, real2str, int2str, strIdx
    1212  USE netcdf, ONLY: nf90_open, nf90_nowrite, nf90_inquire_dimension, nf90_inq_varid, &
     
    2323  USE lmdz_iniprint, ONLY: lunout, prt_level
    2424  USE lmdz_comgeom
     25  USE iso_params_mod   ! tnat_* and alpha_ideal_*
    2526
    2627  USE lmdz_dimensions, ONLY: iim, jjm, llm, ndm
     
    188189          CALL msg(' !!!  Beware: alpha_ideal put to 1  !!!', modname)
    189190        ELSE
    190           IF(getKey('tnat', tnat, isoName(iName)) .OR. getKey('alpha', alpha_ideal, isoName(iName))) &
    191                   CALL abort_gcm(TRIM(modname), 'missing isotopic parameters', 1)
     191          SELECT CASE(isoName(iName))
     192            CASE('H216O'); tnat = tnat_H216O; alpha_ideal = alpha_ideal_H216O
     193            CASE('H217O'); tnat = tnat_H217O; alpha_ideal = alpha_ideal_H217O
     194            CASE('H218O'); tnat = tnat_H218O; alpha_ideal = alpha_ideal_H218O
     195            CASE('HDO');   tnat = tnat_HDO;   alpha_ideal = alpha_ideal_HDO
     196            CASE('HTO');   tnat = tnat_HTO;   alpha_ideal = alpha_ideal_HTO
     197            CASE DEFAULT; CALL abort_gcm(TRIM(modname), 'unknown isotope "' // TRIM(isoName(iName)) // '" ; check tracer.def file', 1)
     198          END SELECT
    192199        END IF
    193200        CALL msg('Missing tracer <' // TRIM(var) // '> => initialized with a simplified Rayleigh distillation law.', modname)
Note: See TracChangeset for help on using the changeset viewer.