4 character (len
= 8) :: h
5 character (len
= 9) :: i
10 subroutine test (p
, q
, n
)
11 character (len
= *) :: p
12 character (len
= n
) :: q
13 character (len
= n
) :: r
14 character (len
= n
) :: t
15 character (len
= n
) :: u
16 integer, dimension (n
+ 4) :: s
20 if (n
.gt
. 8) r
= 'jklmnopqr'
26 !$omp parallel firstprivate (p, q, r) private (t, m) reduction (.or.:l) &
27 !$omp & num_threads (2)
29 if (s(m
) .ne
. m
) l
= .true
.
31 m
= omp_get_thread_num ()
32 l
= l
.or
. p
.ne
. '01234567' .or
. q
.ne
. 'ABCDEFGHI'
33 l
= l
.or
. r
.ne
. 'jklmnopqr' .or
. u
.ne
. 'abc'
41 else if (m
.eq
. 1) then
49 l
= l
.or
. u
.ne
. '987654321'
50 if (any (s
.ne
. 1)) l
= .true
.
52 l
= l
.or
. p
.ne
. 'A' .or
. q
.ne
. 'B' .or
. r
.ne
. 'C'
53 l
= l
.or
. t
.ne
. '123'
55 l
= l
.or
. p
.ne
. 'D' .or
. q
.ne
. 'E' .or
. r
.ne
. 'F'
56 l
= l
.or
. t
.ne
. '456'