[petsc-users] Calculating the PETSc index of a DMComposite vector

Jed Brown jedbrown at mcs.anl.gov
Mon Nov 11 18:59:58 CST 2013


Anush Krishnan <anush at bu.edu> writes:

> Hi all,
>
> I have two 2D distributed arrays U and V, and a vector created from the
> DMComposite of both. If I know just the Natural Ordering index of an
> element of U  or V, can I calculate the PETSc Ordering index of that
> element in the composite vector?

That direction is fragile and/or expensive unless it is within the
subdomain overlap/ghost region.  Where are you getting this index from?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131111/db949cdb/attachment.pgp>


More information about the petsc-users mailing list