wrf.omp_get_team_size

wrf.omp_get_team_size(level)

Return, for a given nested level of the current thread, the size of the thread team to which the ancestor or the current thread belongs

The omp_get_team_size routine returns the size of the thread team to which the ancestor or the current thread belongs. If the requested nested level is outside the range of 0 and the nested level of the current thread, as returned by the omp_get_level routine, the routine returns -1. Inactive parallel regions are regarded like active parallel regions executed with one thread.

Parameters:

level (int) – The nested level of the current thread.

Returns:

The size of the thread team.

Return type:

int