1 ! { dg-options "-O3 -floop-block" }
4 INTEGER, PARAMETER :: int_4
=4
6 MODULE PROCEDURE sort_int_4v
9 SUBROUTINE sort_int_4v ( arr
, n
, index
)
10 INTEGER(KIND
=int_4
), INTENT(INOUT
) :: arr(1:n
)
11 INTEGER, INTENT(OUT
) :: INDEX(1:n
)
18 IF (arr(i
)<=a
) GO
TO 2
25 END SUBROUTINE sort_int_4v
26 SUBROUTINE create_destination_list(list
)
27 INTEGER, DIMENSION(:, :, :), POINTER :: list
28 INTEGER :: icpu
, ncpu
, stat
, ultimate_max
29 INTEGER, ALLOCATABLE
, DIMENSION(:) :: index
, sublist
31 ALLOCATE(INDEX(ultimate_max
),STAT
=stat
)
33 ALLOCATE(sublist(ultimate_max
),STAT
=stat
)
35 CALL sort(sublist
,ultimate_max
,index
)
36 list(1,:,icpu
)=sublist
39 END SUBROUTINE create_destination_list