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

ID 767251
Date 3/22/2024
Public
Document Table of Contents

FINAL Clause

Parallel Directive Clause: Specifies that the generated task will be a final task.

Syntax

FINAL (scalar-logical-expression)

scalar-logical-expression

Is a scalar logical expression. When the expression evaluates to .TRUE., it specifies that the generated task will be a final task.

All task constructs encountered during execution of a final task will generate included tasks.

Note that if a variable is used in a FINAL clause expression of a directive construct, it causes an implicit reference to the variable in all enclosing constructs.

Only a single FINAL clause can appear in the directive.