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
orKSP
. Thus must be cast with a (PetscObject
), for example,PetscObjectGetComm
((PetscObject
)mat,&comm);
Output Parameter#
comm - the MPI communicator
See Also#
Level#
advanced
Location#
Examples#
src/ts/tutorials/ex12.c
src/ts/tutorials/ex52.c
src/ts/tutorials/ex7.c
src/ts/tutorials/ex47.c
src/ts/tutorials/ex14.c
src/ts/tutorials/ex18.c
src/ts/tutorials/ex10.c
src/ts/tutorials/ex46.c
src/ts/tutorials/ex77.c
src/ksp/ksp/tutorials/ex73.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages