Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

passing arguments to a program

ekeom
Novice
371 Views
Hello,

I wrote a f90 program. I would like to execute it using the dos commands window. I need to pass two arguments to this program. How can I pass arguments to a f90 program (I said program and not subroutine or function)?

Best regards,

Didace
0 Kudos
1 Reply
larsm
Beginner
371 Views
See the NARGS and GETARG procedures in the IFPORT module (IVF) or in the DFLIB module (CVF).
Another option, which I prefer myself,is to get the Fortran 2003 standard interface (module F2KCLI) from
After all, this has to be implemented eventually, on all standard conforming compilers so you will be completely portable using it.
Lars M
0 Kudos
Reply