Changeset 2229
- Timestamp:
- Jan 29, 2020, 6:28:42 PM (5 years ago)
- Location:
- trunk/LMDZ.GENERIC
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LMDZ.GENERIC/README
r2178 r2229 1469 1469 - some fixes for the slab ocean. Still need to make it work in parallel. 1470 1470 1471 == 26/0 2/2019 == AB1471 == 26/03/2019 == AB 1472 1472 - new formulae to compute vertical speed in thermcell_plume 1473 1473 - fix an inconsistency in zdttherm and zdqtherm computation according to water key value in physiq_mod … … 1499 1499 - Cleanup thermal plums model subroutines (thermcell_main, thermcell_env, thercell_dq, thermcell_dv2, thermcell_closure, thermcell_height) 1500 1500 - In thermcell_plume, restore initial formula to compute the vertical speed and cleanup the file 1501 1502 == 29/01/2019 == AB 1503 - fix a bug in thermcell_dq. Now zqt is correctly initialized when tracer h2o_vap is missing (consistency with flag water is assumed). -
trunk/LMDZ.GENERIC/libf/phystd/thermcell_dq.F90
r2177 r2229 3 3 ! 4 4 SUBROUTINE thermcell_dq(ngrid,nlay,ptimestep,fm,entr,detr,masse, & 5 q,dq,qa ,lmin,lmax)5 q,dq,qa) 6 6 7 7 … … 22 22 23 23 USE print_control_mod, ONLY: prt_level 24 US ethermcell_mod, ONLY: dqimpl24 USE thermcell_mod, ONLY: dqimpl 25 25 26 26 IMPLICIT NONE … … 36 36 INTEGER, INTENT(in) :: ngrid 37 37 INTEGER, INTENT(in) :: nlay 38 INTEGER, INTENT(in) :: lmin(ngrid)39 INTEGER, INTENT(in) :: lmax(ngrid)40 38 41 39 REAL, INTENT(in) :: ptimestep … … 87 85 print *, 'ERROR: entrainment is greater than the layer mass!' 88 86 print *, 'ig,l,entr', ig, l, entr(ig,l) 89 print *, 'lmin,lmax', lmin(ig), lmax(ig)90 87 print *, '-------------------------------' 91 88 print *, 'entr*dt,mass', entr(ig,l)*ptimestep, masse(ig,l) … … 107 104 108 105 DO ig=1,ngrid 109 DO l=1,lmin(ig) 110 qa(ig,l) = q(ig,l) 111 ENDDO 112 ENDDO 113 114 DO ig=1,ngrid 115 DO l=lmin(ig)+1,nlay 116 IF ((fm(ig,l+1)+detr(ig,l))*ptimestep.gt.1.e-6*masse(ig,l)) THEN 106 DO l=1,nlay 107 IF ((fm(ig,l+1)+detr(ig,l))*ptimestep > 1.e-6*masse(ig,l)) THEN 117 108 qa(ig,l) = (fm(ig,l) * qa(ig,l-1) + entr(ig,l) * q(ig,l)) & 118 109 & / (fm(ig,l+1) + detr(ig,l)) -
trunk/LMDZ.GENERIC/libf/phystd/thermcell_main.F90
r2177 r2229 383 383 384 384 CALL thermcell_dq(ngrid,nlay,ptimestep,fm0,entr0,detr0,masse, & 385 & zhl,zdthladj,dummy ,lmin,lmax)385 & zhl,zdthladj,dummy) 386 386 387 387 DO l=1,nlay … … 397 397 DO iq=1,nq 398 398 CALL thermcell_dq(ngrid,nlay,ptimestep,fm0,entr0,detr0,masse, & 399 & pq(:,:,iq),pdqadj(:,:,iq),zqa(:,:,iq) ,lmin,lmax)399 & pq(:,:,iq),pdqadj(:,:,iq),zqa(:,:,iq)) 400 400 ENDDO 401 401 … … 409 409 ELSE 410 410 CALL thermcell_dq(ngrid,nlay,ptimestep,fm0,entr0,detr0,masse, & 411 & zu,pduadj,zua ,lmin,lmax)411 & zu,pduadj,zua) 412 412 CALL thermcell_dq(ngrid,nlay,ptimestep,fm0,entr0,detr0,masse, & 413 & zv,pdvadj,zva ,lmin,lmax)413 & zv,pdvadj,zva) 414 414 ENDIF 415 415
Note: See TracChangeset
for help on using the changeset viewer.