Newbie question: Specify pgfortran .mod output directory

Hello,
I’m moving from gfortran to pgfortran and have a very basic question:
In gfortran I can use -J/dir/ to specify where to output .mod files.
What is the equivalent in pgfortran? I’ve tried searching the manpage but haven’t had much luck.

Thanks!

The switch is -module


pgfortran -module /tmp/modfiles -c foo.f90

will either look for modfiles referenced (use xxx)
in /tmp/modfiles, or will place newly created modfiles there.

dave

Thanks!