Re: Reading in fortran files [message #3079] |
Fri, 04 November 1994 10:06  |
sjt
Messages: 72 Registered: November 1993
|
Member |
|
|
John Holland (ajh@met.ed.ac.uk) wrote:
: Sorry if this is an obvious question but ....
: Is there a way of reading in unformatted direct access fortran files, and if
: so, how? I normally use unformatted serial access fortran files, but it would
: be quite useful to be able to do it this way too.
: Thanks for your help
: John
Both are do-able on unix or VMS.
Infile was a fortran direct access file:
VMS:
openr,ilu,/get, file, lrecl ; lrecl is length of record in bytes
Unix:
openr, ilu, /get, file ; You need to know the length of record
; you were using in FTN.
Infile was fortran sequential file:
VMS:
openr, ilu, /get, file, /segmented
Unix:
openr, ilu, /get, file, /f77_unformatted
In all cases you then just use readu in the usual way.
--
+------------------------+---------------------------------- --+---------+
| James Tappin, | School of Physics & Space Research | O__ |
| sjt@xun8.sr.bham.ac.uk | University of Birmingham | -- \/` |
| "If all else fails--read the instructions!" | |
+----------------------------------------------------------- --+---------+
|
|
|