2 ! Segfaulted on second set of writes. We weren't handling partial records
3 ! properly when calculating the file position.
9 real, allocatable
:: p(:)
11 nt
= 2049 ! if nt < 2049, then everything works.
16 inquire(iolength
=mt
) (p(m
), m
=1, nt
)
18 open(unit
=12, file
='syn.sax', access
='direct', recl
=mt
)
20 write(12, rec
=n
) mt
, nt
21 write(12, rec
=n
+1) (p(m
), m
=1, nt
)
24 inquire(iolength
=mt
) (p(m
), m
=1, nt
)
26 open(unit
=12, file
='syn.sax', access
='direct', recl
=mt
)
28 write(12, rec
=n
) mt
, nt
29 write(12, rec
=n
+1) (p(m
), m
=1, nt
)