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
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