OpenMP Directives: Synchronization Constructs: ORDERED Directive

Purpose:

Format:

Fortran

!$OMP DO ORDERED [clauses...]
   (loop region)

!$OMP ORDERED

   (block)

!$OMP END ORDERED

   (end of loop region)
!$OMP END DO

C/C++

#pragma omp for ordered [clauses...]
   (loop region)

#pragma omp ordered  newline

   structured_block

   (endo of loop region)

Restrictions: