<div class="gmail_quote">On Sat, Dec 3, 2011 at 17:00, Hailong Xiao <span dir="ltr"><<a href="mailto:xiaohl1986@gmail.com">xiaohl1986@gmail.com</a>></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*)&u);<br>DMDAVecGetArray(DM da,Vec global,(void*)&f);<br>
...<br>f[i][j] = u[i][j] - ...<br><br><br clear="all">does it change the values in vector "global" after I change the values in "f"?</div></blockquote></div><br><div>This sets the values in global, but you can only address "owned" parts of the global vector.</div>