PetscObjectGetComm
Gets the MPI communicator for any PetscObject, regardless of the type.
Synopsis
int 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
Keywords
object, get, communicator, MPI
Examples
src/snes/examples/tutorials/ex7.c
Location: src/sys/src/objectsgcomm.c
System Index
Table of Contents