Changeset 3065 for palm/trunk/SOURCE/lpm_init.f90
- Timestamp:
- Jun 12, 2018 7:03:02 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/lpm_init.f90
r3049 r3065 25 25 ! ----------------- 26 26 ! $Id$ 27 ! dz was replaced by dzw or dz(1) to allow for right vertical stretching 28 ! 29 ! 3049 2018-05-29 13:52:36Z Giersch 27 30 ! Error messages revised 28 31 ! … … 794 797 ip = tmp_particle%x * ddx 795 798 jp = tmp_particle%y * ddy 796 kp = tmp_particle%z / dz + 1 + offset_ocean_nzt799 kp = tmp_particle%z / dz(1) + 1 + offset_ocean_nzt 797 800 DO WHILE( zw(kp) < tmp_particle%z ) 798 801 kp = kp + 1 … … 969 972 pdz(particles(n)%group) 970 973 particles(n)%z = particles(n)%z + & 971 MERGE( rand_contr, SIGN( dz , rand_contr ),&972 ABS( rand_contr ) < dz 974 MERGE( rand_contr, SIGN( dzw(kp), rand_contr ), & 975 ABS( rand_contr ) < dzw(kp) & 973 976 ) 974 977 ENDIF … … 987 990 i = particles(n)%x * ddx 988 991 j = particles(n)%y * ddy 989 k = particles(n)%z / dz + 1 + offset_ocean_nzt992 k = particles(n)%z / dz(1) + 1 + offset_ocean_nzt 990 993 DO WHILE( zw(k) < particles(n)%z ) 991 994 k = k + 1
Note: See TracChangeset
for help on using the changeset viewer.