wrf.omp_get_ancestor_thread_num¶
- wrf.omp_get_ancestor_thread_num(level)¶
Return, for a given nested level of the current thread, the thread number of the ancestor of the current thread.
The omp_get_ancestor_thread_num routine returns the thread number of the ancestor at a given nest level of the current thread or the thread number of the current thread. If the requested nest level is outside the range of 0 and the nest level of the current thread, as returned by the omp_get_level routine, the routine returns -1.