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#

Output Parameter#

  • comm - the MPI communicator

See Also#

PetscObject, PetscObjectComm()

Level#

advanced

Location#

src/sys/objects/gcomm.c

Examples#

src/tao/constrained/tutorials/ex1.c
src/tao/tutorials/ex2.c
src/dm/tutorials/ex15.c
src/tao/tutorials/ex1.c
src/snes/tutorials/ex26.c
src/snes/tutorials/ex69.c
src/dm/impls/plex/tutorials/ex11.c
src/snes/tutorials/ex76.c
src/snes/tutorials/ex63.c
src/snes/tutorials/ex5.c


Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages