Changeset cea125d in flexpart.git


Ignore:
Timestamp:
Jan 27, 2017, 8:59:20 AM (7 years ago)
Author:
Sabine <sabine.eckhardt@…>
Branches:
master, 10.4.1_pesei, GFS_025, bugfixes+enhancements, dev, release-10, release-10.4.1, scaling-bug, univie
Children:
2363b24
Parents:
88929bf
Message:

hmix can also be interpolated, set in com_mod.f90

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/advance.f90

    r7725d96 rcea125d  
    249249  if (ngrid.le.0) then
    250250    do k=1,2
    251       mind=memind(k) ! eso: compatibility with 3-field version
    252 !      do j=jy,jyp
    253 !       do i=ix,ixp
    254 !          if (hmix(i,j,1,mind).gt.h) h=hmix(i,j,1,mind)
    255            h1(k)=p1*hmix(ix ,jy ,1,mind) &
    256          + p2*hmix(ixp,jy ,1,mind) &
    257          + p3*hmix(ix ,jyp,1,mind) &
    258          + p4*hmix(ixp,jyp,1,mind)
    259 
    260 !       end do
    261 !     end do
     251       mind=memind(k) ! eso: compatibility with 3-field version
     252       if (interpolhmix)
     253             h1(k)=p1*hmix(ix ,jy ,1,mind) &
     254                 + p2*hmix(ixp,jy ,1,mind) &
     255                 + p3*hmix(ix ,jyp,1,mind) &
     256                 + p4*hmix(ixp,jyp,1,mind)
     257        else
     258          do j=jy,jyp
     259            do i=ix,ixp
     260               if (hmix(i,j,1,mind).gt.h) h=hmix(i,j,1,mind)
     261            end do
     262          end do
     263        endif
    262264    end do
    263265    tropop=tropopause(nix,njy,1,1)
     
    274276  endif
    275277
    276   h=(h1(1)*dt2+h1(2)*dt1)*dtt
     278  if (interpolhmix) h=(h1(1)*dt2+h1(2)*dt1)*dtt
    277279  zeta=zt/h
    278280
  • src/com_mod.f90

    r1c0d5e6 rcea125d  
    752752  logical :: lroot=.true. ! true if serial version, or if MPI .and. root process
    753753 
    754   logical :: usekernel=.false. ! true if the output kernel shall be switched on
     754  logical :: usekernel=.false.    ! true if the output kernel shall be switched on
     755  logical :: interpolhmxi=.false. ! true if the hmix shall be interpolated
     756 
    755757 
    756758contains
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG