petsc-3.13.6 2020-09-29
PetscObjectGetComm
Gets the MPI communicator for any PetscObject, regardless of the type.
Synopsis
#include "petscsys.h"
PetscErrorCode PetscObjectGetComm(PetscObject obj,MPI_Comm *comm)
Not Collective
Input Parameter
obj -any PETSc object, for example a Vec, Mat or KSP. Thus must be
cast with a (PetscObject), for example,
PetscObjectGetComm((PetscObject)mat,&comm);
Output Parameter
comm -the MPI communicator
See Also
PetscObjectComm()
Level
advanced
Location
src/sys/objects/gcomm.c
Examples
src/dm/tutorials/ex15.c.html
src/ksp/ksp/tutorials/ex42.c.html
src/ksp/ksp/tutorials/ex55.c.html
src/ksp/ksp/tutorials/ex73.c.html
src/snes/tutorials/ex5.c.html
src/snes/tutorials/ex12.c.html
src/snes/tutorials/ex30.c.html
src/snes/tutorials/ex48.c.html
src/snes/tutorials/ex62.c.html
src/snes/tutorials/ex77.c.html
src/snes/tutorials/ex47cu.cu.html
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages