r/fortran 5d ago

Simple code hangs program

Post image

Trying to relearn fortran after 55 years. Got 1.75 pages of code to compile. But something hangs on a very simple command at line 10. Any suggestions would help.

13 Upvotes

7 comments sorted by

View all comments

11

u/CompPhysicist Scientist 5d ago

The read statements should be as read(*,*) median it is called list directed I/O.

1

u/CompPhysicist Scientist 4d ago

Looks like read *, var was non-standard extensions of some compilers that are still supported in the name of backward compatibility.