Changes in trunk/src/advance.f90 [29:4]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/advance.f90
r29 r4 463 463 dcwsave=dcwsave+vp*dt 464 464 zt=zt+w*dt*real(ldirect) 465 466 ! HSO/AL: Particle managed to go over highest level -> interpolation error in goto 700467 ! alias interpol_wind (division by zero)468 if (zt.ge.height(nz)) zt=height(nz)-100.*eps469 465 470 466 if (zt.gt.h) then … … 703 699 endif 704 700 705 ! HSO/AL: Prevent particles from disappearing at the pole706 !******************************************************************707 708 if ( yt.lt.0. ) then709 xt=mod(xt+180.,360.)710 yt=-yt711 else if ( yt.gt.real(nymin1) ) then712 xt=mod(xt+180.,360.)713 yt=2*real(nymin1)-yt714 endif715 701 716 702 ! Check position: If trajectory outside model domain, terminate it … … 718 704 719 705 if ((xt.lt.0.).or.(xt.ge.real(nxmin1)).or.(yt.lt.0.).or. & 720 (yt.g t.real(nymin1))) then706 (yt.ge.real(nymin1))) then 721 707 nstop=3 722 708 return … … 873 859 endif 874 860 875 ! HSO/AL: Prevent particles from disappearing at the pole876 !******************************************************************877 878 if ( yt.lt.0. ) then879 xt=mod(xt+180.,360.)880 yt=-yt881 else if ( yt.gt.real(nymin1) ) then882 xt=mod(xt+180.,360.)883 yt=2*real(nymin1)-yt884 endif885 886 861 ! Check position: If trajectory outside model domain, terminate it 887 862 !***************************************************************** 888 863 889 864 if ((xt.lt.0.).or.(xt.ge.real(nxmin1)).or.(yt.lt.0.).or. & 890 (yt.g t.real(nymin1))) then865 (yt.ge.real(nymin1))) then 891 866 nstop=3 892 867 return
Note: See TracChangeset
for help on using the changeset viewer.