Changeset 4475 for palm/trunk/UTIL/inifor/src/inifor_util.f90
- Timestamp:
- Mar 26, 2020 4:28:19 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/UTIL/inifor/src/inifor_util.f90
r3866 r4475 26 26 ! ----------------- 27 27 ! $Id$ 28 ! Bugfix: use explicit loop in 'reverse' subroutine instead of implicit loop 29 ! 30 ! 3866 2019-04-05 14:25:01Z eckhard 28 31 ! Use PALM's working precision 29 32 ! Improved coding style … … 269 272 SUBROUTINE reverse(input_arr) 270 273 274 INTEGER :: i 275 INTEGER :: lbound_3rd_dimension 276 INTEGER :: ubound_3rd_dimension 277 271 278 REAL(wp), INTENT(INOUT) :: input_arr(:,:,:) 272 279 273 input_arr = input_arr(:,:,size(input_arr, 3):1:-1) 280 lbound_3rd_dimension = LBOUND(input_arr, 3) 281 ubound_3rd_dimension = UBOUND(input_arr, 3) 282 283 DO i = lbound_3rd_dimension, ubound_3rd_dimension 284 input_arr(:,:,i) = input_arr(:,:, & 285 ubound_3rd_dimension - ( i - lbound_3rd_dimension )) 286 ENDDO 274 287 275 288 END SUBROUTINE reverse
Note: See TracChangeset
for help on using the changeset viewer.