Changeset 2368 for trunk/LMDZ.TITAN/libf/phytitan
- Timestamp:
- Jun 11, 2020, 9:35:53 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/libf/phytitan/calchim.F90
r2326 r2368 67 67 USE comcstfi_mod, ONLY: g, rad, pi, r, kbol 68 68 USE geometry_mod, ONLY: latitude 69 #ifndef MESOSCALE 69 70 USE logic_mod, ONLY: moyzon_ch 70 71 USE moyzon_mod, ONLY: tmoy, playmoy 72 #endif 71 73 72 74 IMPLICIT NONE … … 223 225 PRINT*,'Init chemistry : pressure, density, temperature ... :' 224 226 PRINT*,'level, press_c (mbar), nb (cm-3), temp_c (K)' 225 227 228 #ifndef MESOSCALE 229 !! JVO 20 : I put this CPP key because mesoscale cannot access tmoy and playmoy, 230 ! you should fix this when you will propeerly use chemistry ! 231 226 232 IF (ngrid.NE.1) THEN 227 233 DO l=1,klev … … 232 238 ENDDO 233 239 ELSE 240 #endif 234 241 DO l=1,klev 235 242 temp_c(l) = ctemp(1,l) ! K … … 238 245 PRINT*, l, press_c(l), nb(l), temp_c(l) 239 246 ENDDO 247 #ifndef MESOSCALE 240 248 ENDIF 249 #endif 241 250 242 251 ! b. Extension in upper atmosphere with Vervack profile … … 349 358 ! ------------------------------------------------------------------------------------------------------- 350 359 360 #ifndef MESOSCALE 351 361 IF ( ( moyzon_ch .AND. ( ig.EQ.1 .OR. (ABS(latitude(ig)-latitude(igm1)).GT.0.1*pi/180.0)) ) .OR. (.NOT. moyzon_ch) ) THEN 352 362 #endif 353 363 ! 1. Compute altitude for the grid point with hydrostat. equilib. 354 364 ! --------------------------------------------------------------- … … 365 375 nb(l) = 1.e-4*press_c(l) / (kbol*temp_c(l)) ! cm-3 366 376 ENDDO 367 rinter(klev+1)=( czlev(ig,klev+1)+rad)/1000.377 rinter(klev+1)=( (czlay(ig,klev) + ( czlay(ig,klev) - czlev(ig,klev))) +rad )/1000. ! You shall not use czlev(zlev+1) whose value is 1.e7 ! 368 378 369 379 ! b. Extension in upper atmosphere with Vervack profile … … 524 534 ! NB: The full vertical composition grid will be created only for the outputs 525 535 526 536 #ifndef MESOSCALE 527 537 ELSE ! In 2D chemistry, if following grid point at same latitude, same zonal mean so don't do calculations again ! 528 538 dqyc(ig,:,:) = dqyc(igm1,:,:) ! will be put back in 3D with longitudinal variations assuming same relative tendencies within a lat band 529 539 ykim_up(:,ig,:) = ykim_up(:,igm1,:) ! no horizontal mixing in upper layers -> no longitudinal variations 530 540 ENDIF 541 #endif 531 542 532 543 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.