File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ Dependencies:
4545
4646Compilers tested include:
4747
48- * gfortran-10.3 .0
48+ * gfortran-9.4 .0
4949* ifort-2021.4
5050* ifx-2021.4
5151
Original file line number Diff line number Diff line change 55
66contains
77
8- pure module function tile_indices(dims)
8+ pure module function tile_indices(dims) result(res)
99 integer (ik), intent (in ) :: dims
10- integer (ik) :: tile_indices (2 )
10+ integer (ik) :: res (2 )
1111 integer (ik) :: offset, tile_size
1212
1313 tile_size = dims / num_images()
1414
1515 ! ! start and end indices assuming equal tile sizes
16- tile_indices (1 ) = (this_image() - 1 ) * tile_size + 1
17- tile_indices (2 ) = tile_indices (1 ) + tile_size - 1
16+ res (1 ) = (this_image() - 1 ) * tile_size + 1
17+ res (2 ) = res (1 ) + tile_size - 1
1818
1919 ! ! if we have any remainder, distribute it to the tiles at the end
2020 offset = num_images() - mod (dims, num_images())
2121 if (this_image() > offset) then
22- tile_indices (1 ) = tile_indices (1 ) + this_image() - offset - 1
23- tile_indices (2 ) = tile_indices (2 ) + this_image() - offset
22+ res (1 ) = res (1 ) + this_image() - offset - 1
23+ res (2 ) = res (2 ) + this_image() - offset
2424 end if
2525
2626 end function tile_indices
You can’t perform that action at this time.
0 commit comments