petsc-3.3-p7 2013-05-11
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
Level:advanced
Location:src/sys/objects/gcomm.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages
Examples
src/ksp/ksp/examples/tutorials/ex31.c.html
src/ksp/ksp/examples/tutorials/ex42.c.html
src/snes/examples/tutorials/ex1.c.html
src/snes/examples/tutorials/ex5.c.html
src/snes/examples/tutorials/ex30.c.html
src/ts/examples/tutorials/util2.c.html
src/ts/examples/tutorials/ex7.c.html
src/ts/examples/tutorials/ex12.c.html
src/ts/examples/tutorials/ex13.c.html
src/ts/examples/tutorials/ex15.c.html
src/ts/examples/tutorials/ex17.c.html