[petsc-users] extract vector for a 2-D plane from a DM vector for a 3-D domain

Jed Brown jedbrown at mcs.anl.gov
Wed Oct 16 13:02:30 CDT 2013


Roc Wang <pengxwang at hotmail.com> writes:
> I studied some examples for VecScatter.  To my understand, the pathway
> of extracting the plane is through extracting indexes (IS idx_to) of
> the 2-D plane from the vector of the 3-D domain(IS idx_from). To do
> this, I have to create an array of index for IS idx_to and create the
> corresponding IS by ISCreateGeneral(). Am I right?  Thanks for your
> informative response.

Yes.  You can use DMDAGetAO() for index translation if needed.
-------------- 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/20131016/a979fd53/attachment.pgp>


More information about the petsc-users mailing list