Working on a FORTRAN based code for some work.
Not sure what's wrong with it.
The Attempt at a Solution
The section of the code that is causing the problem is:
OPEN( UNIT = 17,FILE='updateddata.txt',STATUS='UNKNOWN') DO I = 1, 146 READ( 17, 703) MASSNUMBER2(I), ABUNDANCE2(I) 703 FORMAT( I7, ES15.8) WRITE (*,*) MASSNUMBER2(I), ABUNDANCE2(I) END DO CLOSE ( UNIT = 17 )
My problem is I get a run time error when running the entire code:
At line 31 of Chisquared.f (unit = 17, file='updateddata.txt')
Fortran runtime error: Bad values during floating point read
My question is: Is anything wrong in the fortran code here? Anything noticeable that would cause an error?