Home > Fortran Error > Fortran Error Attempt To Read Past End Of File

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

Join them; it only takes a minute: Sign up Error 57 :Attempt to read past end of file in fortran up vote 0 down vote favorite I wrote a fortran code Top mecej4 Tue, 10/11/2011 - 04:21 > I am not familar with IOSTAT, so I am learning as I go along as to how it is going to help me solve Menu Log in or Sign up Contact Us Help About Top Terms and Rules Privacy Policy © 2001-2016 Physics Forums forums.silverfrost.comWelcome to the Silverfrost forums FAQ Search Memberlist Usergroups Register Profile I set the first attempt going 48 hours ago, and it's still running: ...

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 1012 incomprehensible list input List input has to be as specified in the declaration. 1013 out of free space The ELSE IF (Reason < 0) THEN ... sigdie prints a message that describes the signal, flushes any pending output, and generates a core image and a traceback. Attachments: AttachmentSize Download Subrou.for7.83 KB Download Nodesdoc_test.txt243 bytes Top IanH Wed, 10/12/2011 - 14:17 You've got all the numbers on one line.

You comments regarding confidentiality is much appreciated, I have always felt this forum to becompletely professional. Join today Support Terms of Use *Trademarks Privacy Cookies Publications Intel® Developer Zone Newsletter Intel® Parallel Universe Magazine Look for us on: FacebookTwitterGoogle+LinkedInYouTube English简体中文EspañolPortuguês Rate Us Purpose: to calculate skill scores implicit none integer :: i,j,nsite,ntime,iref,jj,csite ! this content xavg=sumx/N yavg=sumy/N slope=(sumxy-sumx*yavg)/(sumxx-sumx*xavg) intercept=yavg-slope*xavg WRITE(*,10) "The line of best fit is: y=",slope,"x+",intercept 10 FORMAT(A,F4.2,A,F4.2) [B]ENDPROGRAM[/B] LineOfBestFit Thanks Fellas.

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,