2 ! { dg-options "-fcoarray=single" }
7 logical, parameter :: debug
= .false
.
10 integer, allocatable
:: n1(:), n2(:), n3(:)
14 write(name
,'(A,I0)') 'dat', this_image()
15 open(newunit
=fd
, file
=name
)
18 call random_seed(size
=n
)
19 allocate(n1(n
), n2(n
), n3(n
))
21 call random_init(.false
., .true
.)
22 call random_seed(get
=n1
)
25 call random_init(.false
., .true
.)
26 call random_seed(get
=n2
)
29 call random_init(.false
., .true
.)
30 call random_seed(get
=n3
)
34 write(fd
,'(A,4F12.6)') 'x = ', x
35 write(fd
,'(A,4F12.6)') 'y = ', y
36 write(fd
,'(A,4F12.6)') 'z = ', z
39 write(fd
,'(I2,4I13)') i
, n1(i
), n2(i
), n3(i
)