hodgesse1 / rfortran

Automatically exported from code.google.com/p/rfortran
0 stars 0 forks source link

Add 'RFortran_enabled' global variable to RFortran #95

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
*** Please provide a description of the enhancement you are requesting.

For developers with multiple configurations of plugins (such as RFortran) 
within a software (eg, BATEA), it is often needed to figure out what is enabled 
and what is not.

For example, if the software was built with RFortran or with a dummy.

Therefore, can you please add the following parameter to the 
RFortran_globalvars module, somewhere right after the version name is defined:

logical(mlk),parameter::RFortran_enabled=.true.

For the dummy RFortran, the following value should be set

logical(mlk),parameter::RFortran_enabled=.false.

This allows easily determining with a simple IF statement whether the real or 
dummy RFortran has been linked to any application, and take action accordingly.

In DMSL, I am adopting the same approach with MATFortran_enabled, etc.

Would be good to standardize this across the various libraries.

Original issue reported on code.google.com by dmitri.k...@gmail.com on 8 Jun 2011 at 9:25