<html>
<head>
<meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
</head>
<body>
Hi Sander:<br>
Thank you for your advices, and it works. But it is only
available in th local vector. <br>
Is there any methods to reach this purposes in the global vector?<br>
Thanks<br>
leejearl<br>
<div class="moz-cite-prefix">On 2016年11月05日 19:29, Sander Arens
wrote:<br>
</div>
<blockquote
cite="mid:CANjx4D5e5MxX3-Sm_fvGevZqP9azZYmZt5q6ZJ6PzxVnsc0QCg@mail.gmail.com"
type="cite">
<div dir="ltr">
<div>You can first obtain an IS with <br>
<a moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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 moz-do-not-send="true"
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>
</blockquote>
<br>
</body>
</html>