Ignore:
Timestamp:
Apr 16, 2012, 12:00:40 PM (13 years ago)
Author:
acolaitis
Message:

Thermals. Finally corrected advection scheme... The bug was coming from a non conservation of fluxes, not from the advection scheme itself.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/thermcell_main_mars.F90

    r619 r621  
    175175      data firstcall/.true./
    176176      REAL zhc(ngridmx,nlayermx)
    177       REAL zdzfull(ngridmx,nlayermx)
    178177      REAL ratiom(ngridmx,nlayermx)
    179178
     
    411410       ad = 0.0004
    412411       adalim=0.
     412
    413413       b1inv=0.00025
     414!       b1inv=b1
     415
    414416!       b1inv = 0.0003
    415417
     
    12281230      zdthladj(:,:)=0.
    12291231
     1232      if (1 .eq. 0) then
     1233      call thermcell_dqup(ngridmx,nlayermx,ptimestep     &
     1234     &     ,fm,entr,  &
     1235     &    masse,ztv,zdthladj)
     1236      else
     1237
     1238
    12301239      do ig=1,ngridmx
    12311240         if(lmax(ig) .gt. 1) then
     
    12441253         endif
    12451254      enddo
     1255
     1256      endif
    12461257
    12471258! ------------------------------------------------------------------
     
    15281539      if (ico2.ne.0) then
    15291540!      if (nqmx .ne. 0.) then
    1530       do l=1,nlayermx
    1531          zdzfull(:,l)=zlev(:,l+1)-zlev(:,l)
    1532       enddo
    1533 
    1534       modname='tracer'
    15351541      call thermcell_dqup(ngridmx,nlayermx,ptimestep     &
    1536      &     ,fm,entr,fraca,  &
    1537      &    masse,pq(:,:,ico2),pdqadj(:,:,ico2),modname,zdzfull)
     1542     &     ,fm,entr,  &
     1543     &    masse,pq(:,:,ico2),pdqadj(:,:,ico2))
    15381544!      endif
    15391545
Note: See TracChangeset for help on using the changeset viewer.