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

D in column 1?

AONym
New Contributor II
353 Views
Converting from CVF 6.6 to IVF 9.1, I find some code has conditional compilation for the debug version using "D" in column 1. This syntax is not accepted in IVF for free-format source form. What is the best way to have conditionally-compiled statements in IVF free-format?

The documentation mentions conditional compilation as being possible (as a language extension) on p 14-53 of the Language Reference manual, but does not say how it used (i e, how the condition is determined).
0 Kudos
1 Reply
Steven_L_Intel1
Employee
353 Views
See the documentation for !DEC$ IF, !DEC$ IF DEFINED, !DEC$ ELSE, !DEC$ ENDIF. The condition usually tests "preprocessor symbols" which you define in the project property Preprocessor page.
0 Kudos
Reply