Changeset 4301 for palm/trunk/SOURCE/inflow_turbulence.f90
- Timestamp:
- Nov 22, 2019 12:09:09 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/inflow_turbulence.f90
r4297 r4301 25 25 ! ----------------- 26 26 ! $Id$ 27 ! use y_shift instead of old parameter recycling_yshift 28 ! 29 ! 4297 2019-11-21 10:37:50Z oliver.maas 27 30 ! changed recycling_yshift so that the y-shift can be a multiple of PE 28 31 ! instead of y-shift of a half domain width … … 55 58 56 59 USE control_parameters, & 57 ONLY: humidity, passive_scalar, recycling_plane, recycling_yshift, &60 ONLY: humidity, passive_scalar, recycling_plane, y_shift, & 58 61 recycling_method_for_thermodynamic_quantities 59 62 … … 87 90 inflow_dist !< turbulence signal of vars, added at inflow boundary 88 91 REAL(wp), DIMENSION(nzb:nzt+1,nysg:nyng,7,nbgp) :: & 89 local_inflow_dist !< auxiliary variable for inflow_dist, used for y shift92 local_inflow_dist !< auxiliary variable for inflow_dist, used for y-shift 90 93 91 94 CALL cpu_log( log_point(40), 'inflow_turbulence', 'start' ) … … 245 248 !-- y-shift for inflow_dist 246 249 !-- Shift inflow_dist in positive y direction by a number of 247 !-- PEs equal to recycling_yshift248 IF ( ( recycling_yshift /= 0 ) .AND. myidx == id_inflow ) THEN250 !-- PEs equal to y_shift 251 IF ( ( y_shift /= 0 ) .AND. myidx == id_inflow ) THEN 249 252 250 253 ! 251 254 !-- Calculate the ID of the PE which sends data to this PE (prev) and of the 252 255 !-- PE which receives data from this PE (next). 253 prev = MODULO(myidy - recycling_yshift , pdims(2))254 next = MODULO(myidy + recycling_yshift , pdims(2))256 prev = MODULO(myidy - y_shift , pdims(2)) 257 next = MODULO(myidy + y_shift , pdims(2)) 255 258 256 259 local_inflow_dist = 0.0_wp
Note: See TracChangeset
for help on using the changeset viewer.