Trouble running a compiled FORTRAN program.. failing with error trying to open a file at line 61

0

I have no experience in Fortran having written code in C# and Aurelia.

I was interested in a program that designs turbine blades and would have liked to use it to explore a design process however its supplied as a program ready to compile and run.

Here is the Dropbox with the program. (there are 3 such programs this being the first in a series)

https://www.dropbox.com/sh/8i0jyxzjb57q4j4/AADwCp9bufU-_uug9yHmvQYma/MEANGEN/meangen%20program?dl=0&preview=meangen-17.4.f&subfolder_nav_tracking=1

Instructions on the use of this are a couple of folders up..

https://www.dropbox.com/sh/8i0jyxzjb57q4j4/AAAh1Jq_WkJfDSRet69Rxfo-a/MEANGEN/meangen-instructions.pdf?dl=0

I have installed minGW-W64 added to the path and then attempted to run the program. Where I think I should get a bunch of questions etc It runs and stops with an error. So I was able to compile it but it fails trying to open a file.

At line 61 of file mengen.f (unit = 5)
Fortran runtime error: Cannot open file '/dev/tty': No such file or directory

Error termination. Backtrace:

Could not print backtrace: libbacktrace could not find executable to open
#0  0xffffffff
#1  0xffffffff
#2  0xffffffff
#3  0xffffffff
#4  0xffffffff
#5  0xffffffff
#6  0xffffffff
#7  0xffffffff
#8  0xffffffff
#9  0xffffffff
#10  0xffffffff
#11  0xffffffff

I looked at the code and its trying to open a file called /dev/tty here is the line 60.

C
  OPEN(UNIT=10, FILE= 'meangen.out')
  OPEN(UNIT=5,  FILE= '/dev/tty')
C

Anybody out there who might know how to fix this and get it to work?

fortran
gfortran
asked on Stack Overflow Jan 19, 2019 by si2030 • edited Jan 21, 2019 by Vladimir F

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0