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/iniacademic_loc.F90

    r5223 r5229  
    1 ! $Id: iniacademic.F90 1625 2012-05-09 13:14:48Z lguez $
    2 
    31SUBROUTINE iniacademic_loc(vcov, ucov, teta, q, masse, ps, phis, time_0)
    42
    53  USE lmdz_filtreg, ONLY: inifilr
    6   USE lmdz_infotrac, ONLY: nqtot, niso, iqIsoPha, tracers, getKey, isoName, addPhase
     4  USE lmdz_infotrac, ONLY: nqtot, niso, iqIsoPha, tracers, isoName, addPhase
    75  USE control_mod, ONLY: day_step, planet_type
    86  USE exner_hyb_m, ONLY: exner_hyb
     
    2119  USE lmdz_academic, ONLY: tetarappel, knewt_t, kfrict, knewt_g, clat4
    2220  USE lmdz_comgeom
     21  USE iso_params_mod   ! tnat_* and alpha_ideal_*
    2322
    2423  !   Author:    Frederic Hourdin      original: 15/01/93
     
    322321                    WRITE(lunout, *) 'In '//TRIM(modname)//': !!!  Beware: alpha_ideal put to 1  !!!'
    323322                 ELSE
    324                     IF(getKey('tnat', tnat, isoName(iName)) .OR. getKey('alpha', alpha_ideal, isoName(iName))) &
    325                     CALL abort_gcm(TRIM(modname), 'missing isotopic parameters', 1)
     323                    SELECT CASE(isoName(iName))
     324                      CASE('H216O'); tnat = tnat_H216O; alpha_ideal = alpha_ideal_H216O
     325                      CASE('H217O'); tnat = tnat_H217O; alpha_ideal = alpha_ideal_H217O
     326                      CASE('H218O'); tnat = tnat_H218O; alpha_ideal = alpha_ideal_H218O
     327                      CASE('HDO');   tnat = tnat_HDO;   alpha_ideal = alpha_ideal_HDO
     328                      CASE('HTO');   tnat = tnat_HTO;   alpha_ideal = alpha_ideal_HTO
     329                      CASE DEFAULT
     330                         CALL abort_gcm(TRIM(modname),'unknown isotope "'//TRIM(isoName(iName))//'" ; check tracer.def file',1)
     331                    END SELECT
    326332                 END IF
    327333                 q(ijb_u:ije_u,:,iq) = q(ijb_u:ije_u,:,iqParent)*tnat*(q(ijb_u:ije_u,:,iqParent)/30.e-3)**(alpha_ideal-1.)
Note: See TracChangeset for help on using the changeset viewer.