Dear subscribers,
I was having a small problem with a program (compiled with gfortran)
that gave me run time errors when writing to a direct access file.
"Fortran runtime error: Record number not allowed for sequential access
data transfer". And I could not figure out why.
So I wrote a tiny-weeny program to test the writing to direct access files:
PROGRAM TOTO
IREC=1
ISIZ1=1870
OPEN(UNIT=23,ACCESS='SEQUENTIAL',STATUS='SCRATCH',
. FORM='UNFORMATTED',RECL=ISIZ1)
WRITE(23,REC=IREC) IREC
END
This program gives me the run time error when compiled with gfortran,
but gives no such error when compiled with g77. So for those of you who
develop code, and who want to link their software to the ccp4 libraries,
I think it is wiser to use the configure --with-g77 option for ccp4
compilation if you want to write to direct access files. Perhaps this is
a known bug in gfortran (I have sent an email to the gfortran developers
and haven't heard from them yet), perhaps the version of gfortran I have
here is obsolete...
But I thought I should warn the developers who are on the list.
Fred.
|