File tree Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Expand file tree Collapse file tree 1 file changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -7,11 +7,11 @@ program rand_init_seed
7
7
integer :: s
8
8
integer , allocatable :: seed1(:),seed2(:)
9
9
10
- print * , compiler_version()
10
+ print ' (a) ' , compiler_version()
11
11
12
12
call random_seed (size= s)
13
13
print ' (a,i0)' , " random_seed size: " , s
14
- allocate (seed1(s),seed2(s))
14
+ allocate (seed1(s), seed2(s))
15
15
16
16
call random_init(.false. , .false. )
17
17
call random_seed (get= seed1)
@@ -22,10 +22,9 @@ program rand_init_seed
22
22
print * , " Seed 2: " , seed2
23
23
24
24
if (all (seed1== seed2)) then
25
- write (stderr, ' (a)' ) ' ERROR: random_init(.false., .false.): two seeds above should not match if random_init is working'
26
- error stop
25
+ write (stderr, ' (a)' ) ' ERROR: random_init(.false., .false.): two seeds above should not match if random_init is working'
26
+ else
27
+ print * , " OK: random_init"
27
28
endif
28
29
29
- print * , " OK: random_init"
30
-
31
30
end program
You can’t perform that action at this time.
0 commit comments