mirror of
https://github.com/OpenMP/Examples.git
synced 2025-04-07 23:22:11 +01:00
13 lines
324 B
Fortran
13 lines
324 B
Fortran
! @@name: nthrs_dynamic.1f
|
|
! @@type: F-fixed
|
|
! @@compilable: yes
|
|
! @@linkable: yes
|
|
! @@expect: success
|
|
PROGRAM EXAMPLE
|
|
INCLUDE "omp_lib.h" ! or USE OMP_LIB
|
|
CALL OMP_SET_DYNAMIC(.FALSE.)
|
|
!$OMP PARALLEL NUM_THREADS(10)
|
|
! do work here
|
|
!$OMP END PARALLEL
|
|
END PROGRAM EXAMPLE
|