- #1
solarblast
- 152
- 2
I'm trying to read a dat (txt) file. Win7. It has this 80 character line that I want to read:
6364.1543 .95003538 .953223371.97825229 .100000 6.203.200 00.6480MEANOK A
The relevant parts of the program are:
real :: dummy
500 format(f10.4)
read(unit=astro_in, fmt=500) dummy !<----line 92
write(*,*) "dummy",dummy
It prints this:
dummy 6364.2583
At line 92 of file create-meteor_orbit-namelists.f90 (unit = 10, file = 'METEOR_Legacy.DAT')
Fortran runtime error: Bad value during floating point read.
Any idea what's going on?
It has read read lines like this above it:
Open(unit=astro_in, file="METEOR_Legacy.DAT", status = "OLD")
eof_swt = .False.
do while(eof_swt .EQV. .False.)
Read(unit=astro_in, fmt="(a80)", iostat=eof) card
6364.1543 .95003538 .953223371.97825229 .100000 6.203.200 00.6480MEANOK A
The relevant parts of the program are:
real :: dummy
500 format(f10.4)
read(unit=astro_in, fmt=500) dummy !<----line 92
write(*,*) "dummy",dummy
It prints this:
dummy 6364.2583
At line 92 of file create-meteor_orbit-namelists.f90 (unit = 10, file = 'METEOR_Legacy.DAT')
Fortran runtime error: Bad value during floating point read.
Any idea what's going on?
It has read read lines like this above it:
Open(unit=astro_in, file="METEOR_Legacy.DAT", status = "OLD")
eof_swt = .False.
do while(eof_swt .EQV. .False.)
Read(unit=astro_in, fmt="(a80)", iostat=eof) card