[petsc-users] how to output components of a section

Sander Arens Sander.Arens at ugent.be
Sat Nov 5 06:29:50 CDT 2016


You can first obtain an IS with
http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMCreateSubDM.html
and with that you can obtain a subvector with
http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/VecGetSubVector.html
which you can then view the usual way.

Thanks,
Sander

On 5 November 2016 at 12:17, leejearl <leejearl at 126.com> wrote:

> Hi, all:
>
>     I meet a problems which I can not overcome. The programe is like the
> code in
>
> "http://www.mcs.anl.gov/petsc/petsc-current/src/dm/impls/ple
> x/examples/tutorials/ex1.c.html".
>
>    The code create a section which has three fields: u,v,w. How can I
> output the fields u and v without together with w?
>
>    Thanks!
>
>
> leejearl
>
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20161105/36eb591a/attachment.html>


More information about the petsc-users mailing list