Changeset 5200 for LMDZ6/trunk/libf/dyn3d
- Timestamp:
- Sep 19, 2024, 4:11:02 PM (2 months ago)
- Location:
- LMDZ6/trunk/libf/dyn3d
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/dyn3d/check_isotopes.F90
r5190 r5200 20 20 deltaDmin =-999.0, & 21 21 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. 22 INTEGER, SAVE :: iso_eau, iso_O17, iso_O18, iso_HDO, iso_HTO 23 LOGICAL, SAVE :: ltnat1, first=.TRUE. 26 24 27 25 modname='check_isotopes' … … 30 28 IF(niso == 0) RETURN !--- No isotopes => finished 31 29 IF(first) THEN 30 ltnat1 = .TRUE.; CALL getin('tnateq1', ltnat1) 31 ALLOCATE(tnat(niso)) 32 32 iso_eau = strIdx(isoName,'H216O') 33 iso_O17 = strIdx(isoName,'H217O') 34 iso_O18 = strIdx(isoName,'H218O') 33 35 iso_HDO = strIdx(isoName,'HDO') 34 iso_O18 = strIdx(isoName,'H218O')35 iso_O17 = strIdx(isoName,'H217O')36 36 iso_HTO = strIdx(isoName,'HTO') 37 if (tnat1) then38 39 else37 IF(ltnat1) THEN 38 tnat(:)=1.0 39 ELSE 40 40 IF(getKey('tnat', tnat)) CALL abort_gcm(modname, 'missing isotopic parameter', 1) 41 endif41 END IF 42 42 first = .FALSE. 43 43 END IF … … 51 51 DO k = 1, llm 52 52 DO i = 1, ip1jmp1 53 IF(ABS(q(i,k,iq)) < borne) CYCLE53 IF(ABS(q(i,k,iq)) <= borne) CYCLE 54 54 WRITE(msg1,'(s,"(",i0,",",i0,",",i0,") = ",ES12.4)')TRIM(isoName(ixt)),i,k,iq,q(i,k,iq) 55 55 CALL msg(msg1, modname) -
LMDZ6/trunk/libf/dyn3d/dynetat0.F90
r5199 r5200 19 19 USE temps_mod, ONLY: annee_ref, day_ini, day_ref, itau_dyn, start_time 20 20 USE ener_mod, ONLY: etot0,ptot0,ztot0,stot0,ang0 21 #ifdef CPP_IOIPSL 22 USE IOIPSL, ONLY: getin 23 #else 24 USE ioipsl_getincom, ONLY: getin 25 #endif 21 26 22 27 IMPLICIT NONE … … 42 47 INTEGER :: iq, fID, vID, idecal, iqParent, iName, iZone, iPhase 43 48 REAL :: time, tnat, alpha_ideal, tab_cntrl(length) !--- RUN PARAMS TABLE 44 LOGICAL :: lSkip, ll 45 LOGICAL,PARAMETER :: tnat1=.TRUE. 49 LOGICAL :: lSkip, ll, ltnat1 46 50 !------------------------------------------------------------------------------- 47 51 modname="dynetat0" … … 133 137 ll = NF90_INQ_VARID(fID, 'HNO3tot', vID) /= NF90_NoErr !--- DETECT OLD REPRO start.nc FILE 134 138 #endif 139 ltnat1 = .TRUE.; CALL getin('tnateq1', ltnat1) 135 140 DO iq=1,nqtot 136 141 var = tracers(iq)%name … … 156 161 iqParent = tracers(iq)%iqParent 157 162 IF(tracers(iq)%iso_iZone == 0) THEN 158 if (tnat1) then159 tnat=1.0160 alpha_ideal=1.0161 write(*,*) 'attention dans dynetat0: les alpha_ideal sont a 1'162 else163 IF(ltnat1) THEN 164 tnat = 1.0 165 alpha_ideal = 1.0 166 CALL msg(' !!! Beware: alpha_ideal put to 1 !!!', modname) 167 ELSE 163 168 IF(getKey('tnat', tnat, isoName(iName)) .OR. getKey('alpha', alpha_ideal, isoName(iName))) & 164 169 CALL abort_gcm(TRIM(modname), 'missing isotopic parameters', 1) 165 endif170 END IF 166 171 CALL msg('Missing tracer <'//TRIM(var)//'> => initialized with a simplified Rayleigh distillation law.', modname) 167 172 q(:,:,:,iq) = q(:,:,:,iqParent)*tnat*(q(:,:,:,iqParent)/30.e-3)**(alpha_ideal-1.) -
LMDZ6/trunk/libf/dyn3d/iniacademic.F90
r5199 r5200 79 79 80 80 REAL zdtvr, tnat, alpha_ideal 81 LOGICAL ,PARAMETER :: tnat1=.true.81 LOGICAL :: ltnat1 82 82 83 83 character(len=*),parameter :: modname="iniacademic" … … 308 308 ! bulk initialization of tracers 309 309 if (planet_type=="earth") then 310 ltnat1 = .TRUE.; CALL getin('tnateq1', ltnat1) 310 311 ! Earth: first two tracers will be water 311 312 do iq=1,nqtot … … 321 322 iqParent = tracers(iq)%iqParent 322 323 IF(tracers(iq)%iso_iZone == 0) THEN 323 if (tnat1) then324 tnat=1.0325 alpha_ideal=1.0326 write(*,*) 'Attention dans iniacademic: alpha_ideal=1'327 else324 IF(ltnat1) THEN 325 tnat = 1.0 326 alpha_ideal = 1.0 327 WRITE(lunout, *)'In '//TRIM(modname)//': !!! Beware: alpha_ideal put to 1 !!!' 328 ELSE 328 329 IF(getKey('tnat', tnat, isoName(iName)) .OR. getKey('alpha', alpha_ideal, isoName(iName))) & 329 330 CALL abort_gcm(TRIM(modname), 'missing isotopic parameters', 1) 330 endif331 END IF 331 332 q(:,:,iq) = q(:,:,iqParent)*tnat*(q(:,:,iqParent)/30.e-3)**(alpha_ideal-1.) 332 333 ELSE !IF(tracers(iq)%iso_iZone == 0) THEN
Note: See TracChangeset
for help on using the changeset viewer.