Changeset 4438
- Timestamp:
- Feb 15, 2023, 12:09:56 AM (23 months ago)
- Location:
- LMDZ6/trunk/libf/phylmd
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/phylmd/thermcell_down.F90
r4437 r4438 65 65 66 66 ! lmax : indice tel que fu(kmax+1)=0 67 68 67 ! Dans ce cas, pas besoin d'initialiser tracd(lmax) ( =trac(lmax) ) 69 70 print*,'ON PASSE BIEN PAR LA CCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCCC'71 68 ! Boucle pour le downdraft 72 69 do ilay=nlay,1,-1 73 70 do ig=1,ngrid 74 if (ilay.le.lmax(ig) .and. lmax(ig)>1) then 71 !if ( lmax(ig) > nlay - 2 ) stop "les thermiques montent trop haut" 72 if (ilay.le.lmax(ig) .and. lmax(ig)>1 ) then 75 73 fdn(ig,ilay)=fdn(ig,ilay+1)+edn(ig,ilay)-ddn(ig,ilay) 76 if ( 1 == 0) then77 tracd(ig,ilay)=( fdn(ig,ilay+1)*tracd(ig,ilay+1) + edn(ig,ilay)*trac(ig,ilay) )/ (fdn(ig,ilay)+ddn(ig,ilay))74 if ( fdn(ig,ilay)+ddn(ig,ilay) > 0. ) then 75 www=fdn(ig,ilay+1)/ (fdn(ig,ilay)+ddn(ig,ilay)) 78 76 else 79 www=fdn(ig,ilay+1)/ (fdn(ig,ilay)+ddn(ig,ilay)) 80 tracd(ig,ilay)=www*tracd(ig,ilay+1) + (1.-www)*trac(ig,ilay) 77 www=0. 81 78 endif 79 tracd(ig,ilay)=www*tracd(ig,ilay+1) + (1.-www)*trac(ig,ilay) 82 80 endif 83 81 enddo … … 90 88 if (ilay.lt.lmax(ig) .and. lmax(ig)>1) then 91 89 fup(ig,ilay+1)=fup(ig,ilay)+eup(ig,ilay)-dup(ig,ilay) 90 if (fup(ig,ilay+1)+dup(ig,ilay) > 0.) then 91 www=fup(ig,ilay)/(fup(ig,ilay+1)+dup(ig,ilay)) 92 else 93 www=0. 94 endif 92 95 if (ilay == 1 ) then 93 96 tracu(ig,ilay)=trac(ig,ilay) 94 97 else 95 !tracu(ig,ilay)=( fup(ig,ilay)*tracu(ig,ilay-1) + eup(ig,ilay)*trac(ig,ilay) ) / (fup(ig,ilay+1)+dup(ig,ilay))96 !eup(ig,ilay)=fup(ig,ilay+1)-fup(ig,ilay)+dup(ig,ilay)97 !tracu(ig,ilay)=( fup(ig,ilay)*tracu(ig,ilay-1) + (fup(ig,ilay+1)-fup(ig,ilay)+dup(ig,ilay))*trac(ig,ilay) ) / (fup(ig,ilay+1)+dup(ig,ilay))98 www=fup(ig,ilay)/(fup(ig,ilay+1)+dup(ig,ilay))99 !1-www=(fup(ig,ilay+1)+dup(ig,ilay)-fup(ig,ilay))/(fup(ig,ilay+1)+dup(ig,ilay))100 98 tracu(ig,ilay)=www*tracu(ig,ilay-1)+(1.-www)*trac(ig,ilay) 101 99 endif … … 182 180 183 181 else if (iflag_impl==1) then 184 write(*,*) 'SCHEMA IMPLICITE EN COURS DE DEVELOPPEMENT !'185 182 do ilay=1,nlay 186 183 do ig=1,ngrid -
LMDZ6/trunk/libf/phylmd/thermcell_main.F90
r4413 r4438 502 502 !------------------------------------------------------------------ 503 503 IF (iflag_thermals_down .GT. 0) THEN 504 print*,'AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA' 505 print*,'WARNING !!! routine thermcell_down en cours de developpement' 504 if (debut) print*,'WARNING !!! routine thermcell_down en cours de developpement' 506 505 entrdn=entrdn_coef*detr0 507 506 detrdn=detrdn_coef*entr0
Note: See TracChangeset
for help on using the changeset viewer.