- Timestamp:
- Sep 25, 2017, 4:02:05 PM (7 years ago)
- Location:
- trunk/LMDZ.TITAN
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.TITAN/README
r1764 r1787 1322 1322 - Added a tmpk variable 1323 1323 - Save ~ 50% time on the RT, ~30% on the whole code on the tested simulations 1324 1325 == 25/09/2017 == JVO 1326 Fixed a bug in calchim and physiq_mod on conversion of tendencies to 3D and molar ratio / mass ratio 1327 -> we assume same 2D relative tendency on all lat in calchim and adjust longitudinal variations -
trunk/LMDZ.TITAN/libf/phytitan/calchim.F90
r1672 r1787 277 277 ! BOUCLE SUR LES LATITUDES 278 278 ! 279 ! * Permet de faire le calcul une seule fois par lat 280 ! 279 281 DO j=1,nlon 280 282 … … 492 494 ! FIN: BOUCLE SUR LES LATITUDES 493 495 494 else ! same latitude, we don't do calculations again 495 dqyc(j,:,:) = dqyc(jm1,:,:) 496 else ! same latitude, we don't do calculations again, only adjust longitudinal variations 497 dqyc(j,:,:) = dqyc(jm1,:,:)/qy_c(jm1,:,:)*qy_c(j,:,:) 496 498 endif 497 499 -
trunk/LMDZ.TITAN/libf/phytitan/physiq_mod.F90
r1722 r1787 380 380 381 381 real ychim(ngrid,nlayer,nq-nmicro) 382 383 real rat_mmol(nq) ! Molar fraction ratio 382 384 383 385 ! 2D vmr tendencies ( chemistry and condensation ) … … 470 472 endif 471 473 474 rat_mmol(:) = mmol(:) / mugaz 472 475 473 476 ! Read 'startfi.nc' file. … … 1005 1008 if (callchim) then 1006 1009 1010 ! Utilisation de la moyenne zonale dans calchim 1007 1011 zplev(:,:) = zplevbar(:,:) 1008 1012 zplay(:,:) = zplaybar(:,:) … … 1013 1017 if (nq.gt.nmicro) then 1014 1018 do iq = nmicro+1,nq 1015 ychim(:,:,iq-nmicro) = pq(:,:,iq) 1019 ychim(:,:,iq-nmicro) = pq(:,:,iq) * rat_mmol(iq) ! convert to molar fraction 1016 1020 enddo 1017 1021 endif … … 1040 1044 1041 1045 if (nq.gt.nmicro) then 1042 ! We convert tendencies back to 3D andmass mixing ratio1046 ! We convert tendencies back to mass mixing ratio 1043 1047 do iq=nmicro+1,nq 1044 zdqchi(:,:,iq) = dycchi(:,:,iq-nmicro) *pq(:,:,iq) / ychim(:,:,iq-nmicro)1045 zdqmph(:,:,iq) = dycmph(:,:,iq-nmicro) *pq(:,:,iq) / ychim(:,:,iq-nmicro)1048 zdqchi(:,:,iq) = dycchi(:,:,iq-nmicro) / rat_mmol(iq) 1049 zdqmph(:,:,iq) = dycmph(:,:,iq-nmicro) / rat_mmol(iq) 1046 1050 enddo 1047 1051
Note: See TracChangeset
for help on using the changeset viewer.