Manojg Messages 47 Reaction score 0 Thread starter May 27, 2012 #1 Hi, How can I pass command line argument in FORTRAN 77, like in C/C++? Thanks.
Well_InTheory Messages 14 Reaction score 0 May 27, 2012 #2 (at least in Intel's compiler, specifically f90) I use call getarg(1,buffer) read(buffer,*) variable to read from the input, i.e. $ ./my_program abc to set 'variable' to abc. http://software.intel.com/sites/pro...compiler_f/lref_for/source_files/rfgetarg.htm
(at least in Intel's compiler, specifically f90) I use call getarg(1,buffer) read(buffer,*) variable to read from the input, i.e. $ ./my_program abc to set 'variable' to abc. http://software.intel.com/sites/pro...compiler_f/lref_for/source_files/rfgetarg.htm