Is there Filenames from Command Line option in PGI Visual Fortan?
Instead of hardcoding an input file name in a source code as
Open(UNIT=IUNIT, File=‘Input.txt’),
I’m trying to make it so that users can specify the input file name in the command line.
where the input file is specified as an argument to the executable? If so, the best way to do that is with GET_COMMAND_ARGUMENT, a Fortran 2003 intrinsic that is pretty much portable at this point, and any reasonably new version of PGI will have it.