pgfortran compiler option to write out .mod files

Hello,

I am trying to compile some Fortran code with the pgfortran compiler but it is not recognizing the gfortran -J switch which specifies where to put .mod files for compiled modules.

What is the switch to use with the pgfortran compiler?

Thanks,
Karan

Perhaps -module is what you want:

       -module directory
              Save/search for module files in directory

Matt