4 integer (kind
= 4) :: i
, ia (6), n
, cnt
6 double precision :: d
, da (5)
18 !$omp parallel num_threads (3) private (n) reduction (.or.:v) &
19 !$omp & reduction (max:i, ia, r, ra, d, da)
20 !$ if (i .ne. -huge(i)-1 .or. any (ia .ne. -huge(ia)-1)) v = .true.
21 !$ if (r .ge. -1.0d38 .or. any (ra .ge. -1.0d38)) v = .true.
22 !$ if (d .ge. -1.0d300 .or. any (da .ge. -1.0d300)) v = .true.
23 n
= omp_get_thread_num ()
25 cnt
= omp_get_num_threads ()
33 else if (n
.eq
. 1) then
51 if (i
.ne
. 4 .or
. any (ia
.ne
. (/7, 2, 2, 5, 5, 5/))) call abort
52 if (r
.ne
. 5 .or
. any (ra
.ne
. (/6.5, 6.5, 4., 4./))) call abort
53 if (d
.ne
. 8.5 .or
. any (da
.ne
. (/6.5, 8.5, 8.5, 8.5, 6.5/))) call abort
65 !$omp parallel num_threads (3) private (n) reduction (.or.:v) &
66 !$omp & reduction (min:i, ia, r, ra, d, da)
67 !$ if (i .ne. 2147483647 .or. any (ia .ne. 2147483647)) v = .true.
68 !$ if (r .le. 1.0d38 .or. any (ra .le. 1.0d38)) v = .true.
69 !$ if (d .le. 1.0d300 .or. any (da .le. 1.0d300)) v = .true.
70 n
= omp_get_thread_num ()
72 cnt
= omp_get_num_threads ()
80 else if (n
.eq
. 1) then
99 if (i
.ne
. 1 .or
. any (ia
.ne
. (/1, 1, -2, -2, -2, 1/))) call abort
100 if (r
.ne
. -1 .or
. any (ra
.ne
. (/4., -1.5, -8.5, -1.5/))) call abort
101 if (d
.ne
. -2.5 .or
. any (da
.ne
. (/2.5, 2.5, 2.5, 6., 6.5/))) call abort