[petsc-users] MatGetLocalToGlobalMapping returning null pointers

Jed Brown jed at jedbrown.org
Mon Jul 27 14:42:15 CDT 2015

"Klinvex, Alicia Marie" <amklinv at sandia.gov> writes:
>  ISLocalToGlobalMapping PETScRowOwnership, PETScColOwnership;
>   ierr = MatGetLocalToGlobalMapping(A, &PETScRowOwnership, &PETScColOwnership); CHKERRV(ierr);

It appears that the local-to-global mapping has not been set.  Note that
these mappings do not signify "ownership", but rather a map from an
(overlapping) local index space to the non-overlapping global index

Perhaps you would like MatGetOwnershipRange(s)?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150727/4a3c5541/attachment.pgp>

More information about the petsc-users mailing list