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

Referencing conditional logic

daniel_f_3
Beginner
307 Views

I have a .f90 file with dozens of subroutines, each of which require:

#ifdef _WINDOWS

#ifdef BITS64
  use apm_mod_Win_x64
#else
  use apm_mod_Win_x86
#endif

#else

#ifdef BITS64
  use apm_mod_Linux_x64
#else
  use apm_mod_Linux_x86
#endif

#endif

 

Is there a way to define this logic once and then just refer to it in each subroutine?

 

 

0 Kudos
1 Reply
daniel_f_3
Beginner
307 Views

Never mind - I figured a way around this by copying in 1 file during the build process.

0 Kudos
Reply