#include "petscsys.h" PetscErrorCode PetscOmpCtrlCreate(MPI_Comm petsc_comm,PetscInt nthreads,PetscOmpCtrl *pctrl)
petsc_comm | - a communicator some PETSc object (for example, a matrix) lives in | |
nthreads | - number of threads per MPI rank to spawn in a library using OpenMP. If nthreads = -1, let PETSc decide a suitable value | |
pctrl | - a PETSc OpenMP controler |