Changeset 4984 for LMDZ6/trunk/libf/dyn3d
- Timestamp:
- Jun 15, 2024, 6:26:24 PM (7 months ago)
- Location:
- LMDZ6/trunk/libf/dyn3d
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/dyn3d/check_isotopes.F90
r4399 r4984 23 23 iso_O17, iso_HTO 24 24 LOGICAL, SAVE :: first=.TRUE. 25 LOGICAL, PARAMETER :: tnat1=.TRUE. 25 26 26 27 modname='check_isotopes' … … 34 35 iso_O17 = strIdx(isoName,'H217O') 35 36 iso_HTO = strIdx(isoName,'HTO') 36 IF(getKey('tnat', tnat)) CALL abort_gcm(modname, 'missing isotopic parameter', 1) 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 37 42 first = .FALSE. 38 43 END IF -
LMDZ6/trunk/libf/dyn3d/dynetat0.F90
r4492 r4984 43 43 REAL :: time, tnat, alpha_ideal, tab_cntrl(length) !--- RUN PARAMS TABLE 44 44 LOGICAL :: lSkip, ll 45 LOGICAL,PARAMETER :: tnat1=.TRUE. 45 46 !------------------------------------------------------------------------------- 46 47 modname="dynetat0" … … 155 156 iqParent = tracers(iq)%iqParent 156 157 IF(tracers(iq)%iso_iZone == 0) THEN 157 IF(getKey('tnat', tnat, isoName(iName)) .OR. getKey('alpha', alpha_ideal, isoName(iName))) & 158 if (tnat1) then 159 tnat=1.0 160 alpha_ideal=1.0 161 write(*,*) 'attention dans dynetat0: les alpha_ideal sont a 1' 162 else 163 IF(getKey('tnat', tnat, isoName(iName)) .OR. getKey('alpha', alpha_ideal, isoName(iName))) & 158 164 CALL abort_gcm(TRIM(modname), 'missing isotopic parameters', 1) 165 endif 159 166 CALL msg('Tracer <'//TRIM(var)//'> is missing => initialized with a simplified Rayleigh distillation law.', modname) 160 167 q(:,:,:,iq) = q(:,:,:,iqParent)*tnat*(q(:,:,:,iqParent)/30.e-3)**(alpha_ideal-1.) -
LMDZ6/trunk/libf/dyn3d/iniacademic.F90
r4419 r4984 80 80 81 81 REAL zdtvr, tnat, alpha_ideal 82 LOGICAL,PARAMETER :: tnat1=.true. 82 83 83 84 character(len=*),parameter :: modname="iniacademic" … … 321 322 iqParent = tracers(iq)%iqParent 322 323 IF(tracers(iq)%iso_iZone == 0) THEN 323 IF(getKey('tnat', tnat, isoName(iName)) .OR. getKey('alpha', alpha_ideal, isoName(iName))) & 324 if (tnat1) then 325 tnat=1.0 326 alpha_ideal=1.0 327 write(*,*) 'Attention dans iniacademic: alpha_ideal=1' 328 else 329 IF(getKey('tnat', tnat, isoName(iName)) .OR. getKey('alpha', alpha_ideal, isoName(iName))) & 324 330 CALL abort_gcm(TRIM(modname), 'missing isotopic parameters', 1) 331 endif 325 332 q(:,:,iq) = q(:,:,iqParent)*tnat*(q(:,:,iqParent)/30.e-3)**(alpha_ideal-1.) 326 ELSE 327 q(:,:,iq) = q(:,:,iqIsoPha(iName,iPhase)) 328 END IF 333 ELSE !IF(tracers(iq)%iso_iZone == 0) THEN 334 IF(tracers(iq)%iso_iZone == 1) THEN 335 ! correction le 14 mai 2024 pour que tous les traceurs soient de la couleur 1. 336 ! Sinon, on va avoir des porblèmes de conservation de masse de traceurs. 337 q(:,:,iq) = q(:,:,iqIsoPha(iName,iPhase)) 338 else !IF(tracers(iq)%iso_iZone == 1) THEN 339 q(:,:,iq) = 0. 340 endif !IF(tracers(iq)%iso_iZone == 1) THEN 341 END IF !IF(tracers(iq)%iso_iZone == 0) THEN 329 342 enddo 330 343 else
Note: See TracChangeset
for help on using the changeset viewer.