[petsc-users] PetscObjectGetComm

Marius Buerkle mbuerkle at web.de
Wed Apr 22 00:11:33 CDT 2020


Hi,

What is PetscObjectGetComm expected to return? I thought it would give the MPI communicator the object lives on. So if I create A matrix on PETSC_COMM_WORLD a call of PetscObjectGetComm for A it would return PETSC_COMM_WORLD? But it seems to return something else, and while most of the nodes return a similar communicator some are giving a different one. That said, is there a way to get the MPI communicator a matrix lives on?

Best,
Marius


More information about the petsc-users mailing list