mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-21 13:21:22 +01:00
20 lines
427 B
TeX
20 lines
427 B
TeX
\pagebreak
|
|
\section{Nested Loop Constructs}
|
|
\label{sec:nested_loop}
|
|
\index{nested loop constructs}
|
|
|
|
The following example of loop construct nesting is conforming because the inner
|
|
and outer loop regions bind to different \code{parallel} regions:
|
|
|
|
\cexample{nested_loop}{1}
|
|
|
|
\fexample{nested_loop}{1}
|
|
|
|
The following variation of the preceding example is also conforming:
|
|
|
|
\cexample{nested_loop}{2}
|
|
|
|
\fexample{nested_loop}{2}
|
|
|
|
|