Changeset 4855 for palm/trunk/SOURCE/global_min_max.f90
- Timestamp:
- Jan 25, 2021 12:30:54 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/global_min_max.f90
r4828 r4855 23 23 ! ----------------- 24 24 ! $Id$ 25 ! bugfix for correct identification of indices of extreme values in case of non-cyclic 26 ! boundary conditions 27 ! 28 ! 4828 2021-01-05 11:21:41Z Giersch 25 29 ! preprocessor branch for ibm removed 26 30 ! … … 51 55 value1_ijk ) 52 56 57 58 USE control_parameters, & 59 ONLY: bc_lr, bc_ns 53 60 54 61 USE indices, & … … 388 395 389 396 ! 390 !-- Limit index values to the range 0..nx, 0..ny 391 IF ( value_ijk(3) < 0 ) value_ijk(3) = nx +1 + value_ijk(3) 392 IF ( value_ijk(3) > nx ) value_ijk(3) = value_ijk(3) - (nx+1) 393 IF ( value_ijk(2) < 0 ) value_ijk(2) = ny +1 + value_ijk(2) 394 IF ( value_ijk(2) > ny ) value_ijk(2) = value_ijk(2) - (ny+1) 397 !-- Limit index values to the range 0..nx, 0..ny. Non-cyclic setups may have extrema at the 398 !-- outer borders, which should be correctly identified. 399 IF ( bc_lr == 'cyclic' ) THEN 400 IF ( value_ijk(3) < 0 ) value_ijk(3) = nx +1 + value_ijk(3) 401 IF ( value_ijk(3) > nx ) value_ijk(3) = value_ijk(3) - (nx+1) 402 ENDIF 403 IF ( bc_ns == 'cyclic' ) THEN 404 IF ( value_ijk(2) < 0 ) value_ijk(2) = ny +1 + value_ijk(2) 405 IF ( value_ijk(2) > ny ) value_ijk(2) = value_ijk(2) - (ny+1) 406 ENDIF 395 407 396 408 END SUBROUTINE global_min_max
Note: See TracChangeset
for help on using the changeset viewer.