Ignore:
Timestamp:
Sep 19, 2024, 4:11:02 PM (5 months ago)
Author:
dcugnet
Message:

Replace the hard-coded "tnat1" (TRUE by default) by a variable that can be changed using "tnateq1" in *.def files.
"iso_verif_dyn" now uses also this variable (fix)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dyn3d_common/iso_verif_dyn.F

    r5190 r5200  
    6464        function iso_verif_aberrant_nostop
    6565     :           (x,iso,q,err_msg)
     66#ifdef CPP_IOIPSL
     67        USE IOIPSL, ONLY: getin
     68#else
     69        USE ioipsl_getincom, ONLY: getin
     70#endif
    6671        USE infotrac, ONLY: isoName, getKey
    6772        implicit none
     
    7782        parameter (qmin=1e-11)
    7883        parameter (deltaDmax=200.0,deltaDmin=-999.9)
     84        LOGICAL, SAVE :: ltnat1
     85        LOGICAL, SAVE :: lFirst=.TRUE.
    7986
    8087        ! output
    8188        integer iso_verif_aberrant_nostop
    8289
     90        IF(lFirst) THEN
     91           ltnat1 = .TRUE.; CALL getin('tnateq1', ltnat1)
     92           lFirst = .FALSE.
     93        END IF
    8394        iso_verif_aberrant_nostop=0
    8495
    8596        ! verifier que HDO est raisonable
    8697         if (q.gt.qmin) then
    87              IF(getKey('tnat', tnat, isoName(iso))) THEN
     98             IF(ltnat1) THEN
     99                tnat = 1.0
     100             ELSE IF(getKey('tnat', tnat, isoName(iso))) THEN
    88101                  err_msg = 'Missing isotopic parameter "tnat"'
    89102                  iso_verif_aberrant_nostop=1
Note: See TracChangeset for help on using the changeset viewer.