Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/22/2024
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Rules for General Directives that Affect DO Loops

This table lists the general directives that affect DO loops:

The following rules apply to all of the general directives:

  • The directive must precede the DO statement for each DO loop it affects. The DO statement can be any of the following:

    • A counted DO loop

    • A DO WHILE loop

    • A DO CONCURRENT loop

  • No source code lines, other than the following, can be placed between the directive statement and the DO statement:

    • One of the other general directives that affect DO loops

    • An OpenMP* Fortran PARALLEL DO directive

    • Comment lines

    • Blank lines

Other rules may apply to these directives. For more information, see the description of each directive.