HOME
| OPENMP API Specification: "Version 5.2 -- GIT rev 95b2e3a44"

3.3.2  Free Source Form Conditional Compilation Sentinel

The following conditional compilation sentinel is recognized in free form source files:  

 
!$  

To enable conditional compilation, a line with a conditional compilation sentinel must satisfy the following criteria:

Continuation lines can have an ampersand after the sentinel, with optional white space before and after the ampersand. If these criteria are met, the sentinel is replaced by two spaces. If these criteria are not met, the line is left unchanged.

In the following example, the two forms for specifying conditional compilation in free source form are equivalent (the first line represents the position of the first 9 columns):
 
c23456789 
 !$ iam = omp_get_thread_num() +     & 
 !$&    index 
 
#ifdef _OPENMP 
    iam = omp_get_thread_num() +     & 
        index 
#endif