<div class="gmail_quote">On Sat, Dec 3, 2011 at 17:00, Hailong Xiao <span dir="ltr">&lt;<a href="mailto:xiaohl1986@gmail.com">xiaohl1986@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div id=":20b">PetscScalar **f,**u;<br>...<br>DMDAVecGetArray(DM da,Vec local,(void*)&amp;u);<br>DMDAVecGetArray(DM da,Vec global,(void*)&amp;f);<br>
...<br>f[i][j] = u[i][j] - ...<br><br><br clear="all">does it change the values in vector &quot;global&quot; after I change the values in &quot;f&quot;?</div></blockquote></div><br><div>This sets the values in global, but you can only address &quot;owned&quot; parts of the global vector.</div>