3.4.4 omp_get_team_num_dim – Get team number in a dimension

description:

Returns the value of dimension dim of the multidimensional team identification number in the current team, i.e. the value of the team-num-var ICV in dimension dim. For inactive spatial dimensions, the routine returns 0. The dimension argument DIM must be non-negative.

The returned value is between zero and one less than the value returned by omp_get_num_teams_dim for the dimension dim.

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

c/c++:
prototype:int omp_get_team_num_dim(int dim);
fortran:
interface:integer function omp_get_team_num_dim(dim)
integer :: dim
See also:

omp_get_team_num_dim – Get team number in a dimension, OMP_NUM_TEAMS – Specifies the number of teams to use by teams region, omp_get_num_teams_dim – Number of teams along a dimension

reference:

OpenMP Technical Report 15, Section 29.4