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

Roc Wang pengxwang at hotmail.com
Wed Oct 16 09:48:16 CDT 2013



> From: jedbrown at mcs.anl.gov
> To: pengxwang at hotmail.com; petsc-users at mcs.anl.gov
> Subject: Re: [petsc-users] extract vector for a 2-D plane from a DM vector for a 3-D domain
> Date: Wed, 16 Oct 2013 09:36:41 -0500
> 
> Roc Wang <pengxwang at hotmail.com> writes:
> >     I have a DM and its vector for a structured 3-D domain and trying
> >     to extract the data for a 2-D plane.  I did some research on the
> >     manual and noticed there is function named DMSlicedCreate(),
> >     however, it is for unstructured problem. Is there any ohter
> >     function to extract vector for a 2-D plane from DM vector for a
> >     3-D domain directly?
> 
> Create a VecScatter.  Do you want to extract many planes to separate
> communicators?
Is it possible I have both cases? 1 a few planes in the same communicator;  2 many planes to separate communicator.
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20131016/0fcea17c/attachment.html>


More information about the petsc-users mailing list