3.4.1 omp_get_num_threads_dim – Size of a dimension of the active team

Returns the size in dimension DIM of threads in the current team and, therefore, of the parallel region that binds to that team, i.e. the value of the team-size-var ICV in dimension dim. For inactive spatial dimensions, the routine returns 1. The dimension argument DIM must be non-negative.

Fortran note: In GCC, this routine does not support passing default-kind integer arguments with -fdefault-integer-8.

C/C++:
Prototype:int omp_get_num_threads_dim(int dim)
Fortran:
Interface:integer function omp_get_num_threads_dim(dim)
integer :: dim
See also:

omp_get_num_threads – Size of the active team, omp_get_thread_num_dim – Dimensional ID of the current thread, omp_get_thread_limit_dim – Maximum number of threads in a dimension, omp_get_max_threads – Maximum number of threads of parallel region, omp_set_num_threads – Set upper team size limit, OMP_NUM_THREADS – Specifies the number of threads to use, omp_get_supported_active_league_dims – Number of supported thread dimensions

Reference:

OpenMP Technical Report 15, Section 29.1