<div dir="ltr"><div>You can first obtain an IS with <br><a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMCreateSubDM.html">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMCreateSubDM.html</a><br></div>and with that you can obtain a subvector with<br><div><a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/VecGetSubVector.html">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/Vec/VecGetSubVector.html</a><br>which you can then view the usual way.<br><br></div><div>Thanks,<br></div><div>Sander<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On 5 November 2016 at 12:17, leejearl <span dir="ltr"><<a href="mailto:leejearl@126.com" target="_blank">leejearl@126.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, all:<br>
<br>
    I meet a problems which I can not overcome. The programe is like the code in<br>
<br>
"<a href="http://www.mcs.anl.gov/petsc/petsc-current/src/dm/impls/plex/examples/tutorials/ex1.c.html" rel="noreferrer" target="_blank">http://www.mcs.anl.gov/petsc/<wbr>petsc-current/src/dm/impls/ple<wbr>x/examples/tutorials/ex1.c.htm<wbr>l</a>".<br>
<br>
   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?<br>
<br>
   Thanks!<span class="HOEnZb"><font color="#888888"><br>
<br>
<br>
leejearl<br>
<br>
<br>
<br>
</font></span></blockquote></div><br></div>