<div dir="ltr">On Wed, Apr 24, 2013 at 11:58 AM, Hui Zhang <span dir="ltr"><<a href="mailto:mike.hui.zhang@hotmail.com" target="_blank">mike.hui.zhang@hotmail.com</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Vec u,v;<br>
<br>
VecCreateMPIAIJ(..,&u);<br>
VecGetArray(u,&a);<br>
<br>
VecCreateSeqWithArray(...,a,&v);<br>
<br>
Is this safe? I want the VecSeq v to read and write local array of u.<br></blockquote><div><br></div><div style>Yes, this is fine.</div><div style><br></div><div style> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This is for VecScatterCreate from a global Vec to the local Seq v,<br>
and then I hope that u get updated as well automatically.<br>
<br>
Thanks in advance!<br>
</blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>