Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problems with reading file 1

Status
Not open for further replies.

milenko76

Technical User
Mar 26, 2010
100
PT
I have this:eek:pen(23, file='vel.mod', form='unformatted',
+ status='old')
Velocity model is vel.mod but Intel 11.1 sees this binary data as Amiga Sound Tracker Audio.Why?
Of course ,when I try to read it later it is not possible.
File vel.mod is created by separate application this way:
open(unit=36, file='vel.mod', form='unformatted')
do 130 k=1,nz
do 130 j=1,ny
do 131 i=1,nx
131 veli(i)=vel(i,j,k)*1000.
130 write(36) (veli(i),i=1,nx)
c
stop
end
I am using x86-64 bit Intel,compiler 11.1
 
It's your OS that recognizes it as a good old nostalgic AmigaSoundTracker file, not your fortran compiler, so if the file contains other (possible more boring) data, fortran shouldn't have any problem with that.

You have to look for the error in the code itself. Make sure the byte size is ok, many commercial files have mixed ascii, binary and mixed byte sizes in the same binary.
 
How should I make sure that the byte size is ok?If you can give me any links,that would be great.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top