#include "petscsys.h" PetscErrorCode PetscOmpCtrlGetOmpComms(PetscOmpCtrl ctrl,MPI_Comm *omp_comm,MPI_Comm *omp_master_comm,PetscBool *is_omp_master)
omp_comm | - a communicator that includes a master rank and slave ranks where master spawns threads | |
omp_master_comm | - on master ranks, return a communicator that include master ranks of each omp_comm; on slave ranks, MPI_COMM_NULL will be return in reality. | |
is_omp_master | - true if the calling process is an OMP master rank. |
Notes: any output parameter can be NULL. The parameter is just ignored.