petsc-3.10.5 2019-03-28
Report Typos and Errors

# PetscOmpCtrlGetOmpComms

Get MPI communicators from a PETSc OMP controler

### Synopsis

    #include "petscsys.h"
    PetscErrorCode PetscOmpCtrlGetOmpComms(PetscOmpCtrl ctrl,MPI_Comm *omp_comm,MPI_Comm *omp_master_comm,PetscBool *is_omp_master)

### Input Parameter

ctrl - a PETSc OMP controler

### Output Parameter

| 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.

### Level

developer

### Location

src/sys/utils/mpishm.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages