Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/advance.f90

    r29 r4  
    463463      dcwsave=dcwsave+vp*dt
    464464      zt=zt+w*dt*real(ldirect)
    465 
    466       ! HSO/AL: Particle managed to go over highest level -> interpolation error in goto 700
    467       !          alias interpol_wind (division by zero)
    468       if (zt.ge.height(nz)) zt=height(nz)-100.*eps
    469465
    470466      if (zt.gt.h) then
     
    703699  endif
    704700
    705   ! HSO/AL: Prevent particles from disappearing at the pole
    706   !******************************************************************
    707 
    708   if ( yt.lt.0. ) then
    709     xt=mod(xt+180.,360.)
    710     yt=-yt
    711   else if ( yt.gt.real(nymin1) ) then
    712     xt=mod(xt+180.,360.)
    713     yt=2*real(nymin1)-yt
    714   endif
    715701
    716702  ! Check position: If trajectory outside model domain, terminate it
     
    718704
    719705  if ((xt.lt.0.).or.(xt.ge.real(nxmin1)).or.(yt.lt.0.).or. &
    720        (yt.gt.real(nymin1))) then
     706       (yt.ge.real(nymin1))) then
    721707    nstop=3
    722708    return
     
    873859  endif
    874860
    875   ! HSO/AL: Prevent particles from disappearing at the pole
    876   !******************************************************************
    877 
    878   if ( yt.lt.0. ) then
    879     xt=mod(xt+180.,360.)
    880     yt=-yt
    881   else if ( yt.gt.real(nymin1) ) then
    882     xt=mod(xt+180.,360.)
    883     yt=2*real(nymin1)-yt
    884   endif
    885 
    886861  ! Check position: If trajectory outside model domain, terminate it
    887862  !*****************************************************************
    888863
    889864  if ((xt.lt.0.).or.(xt.ge.real(nxmin1)).or.(yt.lt.0.).or. &
    890        (yt.gt.real(nymin1))) then
     865       (yt.ge.real(nymin1))) then
    891866    nstop=3
    892867    return
Note: See TracChangeset for help on using the changeset viewer.
hosted by ZAMG