Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fortran input in the command line

Status
Not open for further replies.

mresende

Technical User
Aug 17, 2011
1
US
Hi guys,
I don't know much about Fortran.
I have a script that after is ran, it asks for a parameter file which contains all the variables that the script needs.

I just would like to change it to input the parameter file in the command line together with the executable.

ex:
./script -parfile


this is the script the way it is:

print *, ('what parameter file?')
read(*,*)parfile
open(unit=10,file=parfile,status='old')

call read_par_file()

Could you guys help me?
Thanks a lot
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top