Accessing variables in a FORTRAN module using C

Dear all,

first of all apologize if this topic has been already discussed in the past. I tried to track the information using google and the internal search without success. My bad.

What I am looking for a way to accessing variables in a FORTRAN module using C. Something related to PGI, portable across pgfortran and pgcc (and eventually GNU)

Something similar to the technique described for Intel here https://software.intel.com/sites/products/documentation/hpc/composerxe/en-us/2011Update/fortran/lin/bldaps_for/common/bldaps_use_modmlang.htm


Any suggestion?

Hi,

This page sort of addresses the issues you are asking about:

http://www.pgroup.com/products/freepgi/freepgi_ref/ch04.html

However, it does not specifically address the topic of accessing variables declared within a module. I will check into this, and see if this is possible with PGI compilers.

Best regards,

+chris

Thanks Chris, much appreciated!

This page might also help you:

http://www.pgroup.com/support/interlan.htm

Good luck!

+chris