Fortran Error Attempt To Read Past End Of File
Note that both cases EXIT the DO-loop since continuing the loop execution makes no sense. C IWK : OUT. The sequence is 342 residues long. Should be opened as an C unformatted file. http://epssecurenet.com/fortran-error/fortran-error-57-attempt-to-read-past-end-of-file.html
Tdo= -999. How was the file's data created? I wonder ifthis particularproblem is caused by the following warning message in the output document: : Warning: Because of COMMON, the alignment of object is inconsistent with its type [WEAROUT] $ What is the format statement referred to with statement label 1000?
Otherwise, the value of x is meaningful and is added to sum. For sure, the help and support on this forum is some of the best I have experienced on the internet.2. Most likely your program is expecting the file to be in one format but it's in another. - Mat Back to top zbeekmanJoined: 04 Apr 2012Posts: 5 Posted: Wed Apr 04, Trouble understanding charging capacitor on bridge rectifier Logical fallacy: X is bad, Y is worse, thus X is not bad more hot questions question feed about us tour help blog chat
Regards, David Top mechprog Mon, 10/10/2011 - 01:55 Dear IanH, I am very sorry for rating your reponse, I pressed the star by accident whilst reading itand could not change it N was definitely less than forty in the data file, I tinkered around with the code a bit and replaced the f8.1 with the standard *. Still lots of other problems to solve with the code... Table A-1 f77 Runtime I/O Messages Error Message 1000 error in format Read the error message output for the location of the error in the format.
You could try the following: Errors corresponding to input statements (like read) can be trapped using ERR= and/or IOSTAT= in the file OPEN command. I am fairly confident that the problem is in the data file, not the program source. And finally nmax is 117, but you've only got 63 numbers in the file. but I must perservere.
I will work on it more and see what is happening. –wrf_89 Aug 1 '13 at 20:33 add a comment| up vote 0 down vote As a fix you can use end do end do close(14) fortran runtime-error share|improve this question asked Aug 1 '13 at 20:11 wrf_89 1612 add a comment| 2 Answers 2 active oldest votes up vote 7 down Browse other questions tagged fortran runtime-error or ask your own question. thanks. [fxfortran] open(UNIT=u,FILE='filename',STATUS='REPLACE', $ FORM='FORMATTED') C C Read the number of points C do i=1,rtun read(r,1000,IOSTAT=ios) jslnodes(i) If (ios.Ne.0) Then Write(*,*) 'Something is wrong' Exit End if enddo[/fxfortran] Top Tim P.
Back to top Display posts from previous: All Posts1 Day7 Days2 Weeks1 Month3 Months6 Months1 YearOldest FirstNewest First PGI User Forum Forum Index -> Debugging and Profiling All times are have a peek at these guys Thanks. Thank you much for your help! These should be the same unit number.
Then when it gets to the last record, it wants one more and.. Buy a case of beer and drink two of them slowly, then reconsider the problem. I well get back to you all ASAP on your comments. check over here If this is the real code, not an example, you open unit number "u", but are reading from unit number "r".
hostname: cheminfo starting time: Fri Jul 19 22:33:23 IST 2013 pwd: /tmp/ant/ITA0N0N3 running Psi-blast ..... I am referring to SIMULA Abaqus Finite Element Analysis Engineering software3. "Fun" is one way of describing it :-) Thanks for everyone advice and tips, I have tried to incorporate all I'll give it a go...
What does it actually mean by specified time?
An unformatted read or write also causes this 1011
PGFIO-F-217/list-directed read/unit=31/attempt to read past end of file. How do I explain that this is a terrible idea? Top mechprog Thu, 10/06/2011 - 09:09 By reading the through the Intel Fortran Comilers, it seems that the traceback option is used by typing a command into the command window however,