Quantcast
Channel: Intel® Software - Intel® Visual Fortran Compiler for Windows*
Viewing all articles
Browse latest Browse all 5691

reading file and input conversion error

$
0
0

hello everybody

i am trying to read in a file. its a two column data. Right when i run this code, at line 5242, i get input conversion error. i am pasting the code here. the file i am trying to read is attached.

please help

 

program readout
implicit none

real::a(8243)
real::b(8243)
integer :: j=0

open (unit=10, file='nacanodes.txt', status='old')

do j=1,8243

read(10,fmt='(2f18.15)') a(j),b(j)

write(*,'(i4)') j
write(*,'(2f18.15)')a(j),b(j)

end do

close(10)

end program readout 

 

AttachmentSize
Downloadtext/plainnacanodes.txt296.11 KB

Viewing all articles
Browse latest Browse all 5691


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>