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#

PetscObjectComm()

Level#

advanced

Location#

src/sys/objects/gcomm.c

Examples#

src/dm/impls/plex/tutorials/ex11.c.html
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/ex12.c.html
src/snes/tutorials/ex13.c.html
src/snes/tutorials/ex26.c.html
src/snes/tutorials/ex30.c.html
src/snes/tutorials/ex47cu.cu.html
src/snes/tutorials/ex48.c.html


Edit on GitLab

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