Changeset 3524 for palm/trunk/SOURCE/lpm_init.f90
- Timestamp:
- Nov 14, 2018 1:36:44 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/lpm_init.f90
r3361 r3524 25 25 ! ----------------- 26 26 ! $Id$ 27 ! added missing working precision 28 ! 29 ! 3361 2018-10-16 20:39:37Z knoop 27 30 ! ocean renamed ocean_mode 28 31 ! … … 804 807 ! 805 808 !-- Determine the grid indices of the particle position 806 ip = tmp_particle%x * ddx807 jp = tmp_particle%y * ddy808 kp = tmp_particle%z / dz(1) + 1 + offset_ocean_nzt809 ip = INT( tmp_particle%x * ddx ) 810 jp = INT( tmp_particle%y * ddy ) 811 kp = INT( tmp_particle%z / dz(1) + 1 + offset_ocean_nzt ) 809 812 DO WHILE( zw(kp) < tmp_particle%z ) 810 813 kp = kp + 1 … … 1184 1187 IF ( particles(n)%weight_factor - FLOOR(particles(n)%weight_factor,KIND=wp) & 1185 1188 .GT. random_function( iran_part ) ) THEN 1186 particles(n)%weight_factor = FLOOR(particles(n)%weight_factor,KIND=wp) + 1.0 1189 particles(n)%weight_factor = FLOOR(particles(n)%weight_factor,KIND=wp) + 1.0_wp 1187 1190 ELSE 1188 1191 particles(n)%weight_factor = FLOOR(particles(n)%weight_factor,KIND=wp)
Note: See TracChangeset
for help on using the changeset viewer.