- #1
Milleniumeye
- 2
- 0
- TL;DR Summary
- It is necessary to pass the value of a variable from one FORTRAN program to another.
I need to pass the value of a variable from one FORTRAN program to another. The main program carries out calculations with some numerical inputs a,b , I want to enter numerical values of variables in another program like
real*8 a, b
common/variables/a,b
a = 1.
b = 2.
How should I declare them in the main program and how should I compile the file? This option resulted in an error:
error: unknown type name 'real'
real*8 a, b
common/variables/a,b
a = 1.
b = 2.
How should I declare them in the main program and how should I compile the file? This option resulted in an error:
error: unknown type name 'real'