Changeset 5183 for LMDZ6/trunk/libf/dyn3d/check_isotopes.F90
- Timestamp:
- Sep 10, 2024, 5:14:23 PM (11 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/dyn3d/check_isotopes.F90
r4984 r5183 2 2 USE strings_mod, ONLY: maxlen, msg, strIdx, strStack, int2str, real2str 3 3 USE infotrac, ONLY: nqtot, niso, nphas, isotope, isoCheck, iqIsoPha, isoSelect, & 4 ntiso, iH2O, nzone, tracers, isoName, itZonIso, getKey 4 ntiso, iH2O, nzone, tracers, isoName, itZonIso 5 USE iso_params_mod, ONLY: tnat_H216O, tnat_H217O, tnat_H218O, tnat_HDO, tnat_HTO 6 USE ioipsl_getincom, ONLY: getin 5 7 IMPLICIT NONE 6 8 include "dimensions.h" … … 20 22 deltaDmin =-999.0, & 21 23 ridicule = 1e-12 22 INTEGER, SAVE :: iso_eau, iso_HDO, iso_O18, & 23 iso_O17, iso_HTO 24 LOGICAL, SAVE :: first=.TRUE. 25 LOGICAL, PARAMETER :: tnat1=.TRUE. 24 INTEGER, SAVE :: iso_eau, iso_O17, iso_O18, iso_HDO, iso_HTO 25 LOGICAL, SAVE :: ltnat1, first=.TRUE. 26 26 27 27 modname='check_isotopes' … … 30 30 IF(niso == 0) RETURN !--- No isotopes => finished 31 31 IF(first) THEN 32 iso_eau = strIdx(isoName,'H216O') 33 iso_HDO = strIdx(isoName,'HDO') 34 iso_O18 = strIdx(isoName,'H218O') 35 iso_O17 = strIdx(isoName,'H217O') 36 iso_HTO = strIdx(isoName,'HTO') 37 if (tnat1) then 38 tnat(:)=1.0 39 else 40 IF(getKey('tnat', tnat)) CALL abort_gcm(modname, 'missing isotopic parameter', 1) 41 endif 32 ltnat1 = .TRUE.; CALL getin('tnateq1', ltnat1) 33 ALLOCATE(tnat(niso)) 34 iso_eau = strIdx(isoName,'H216O'); IF(iso_eau /= 0) tnat(iso_eau) = tnat_H216O 35 iso_O17 = strIdx(isoName,'H217O'); IF(iso_O17 /= 0) tnat(iso_O17) = tnat_H217O 36 iso_O18 = strIdx(isoName,'H218O'); IF(iso_O18 /= 0) tnat(iso_O18) = tnat_H218O 37 iso_HDO = strIdx(isoName,'HDO'); IF(iso_HDO /= 0) tnat(iso_HDO) = tnat_HDO 38 iso_HTO = strIdx(isoName,'HTO'); IF(iso_HTO /= 0) tnat(iso_HTO) = tnat_HTO 39 IF(ltnat1) tnat(:) = 1. 42 40 first = .FALSE. 43 41 END IF
Note: See TracChangeset
for help on using the changeset viewer.