Thanks Jed. Makes sense. <div>For simple copying values, is there anyway around it so we don't create the matrix? </div><div><br></div><div>Thanks, </div><div>Mohamad</div><div><br><div class="gmail_quote">On Fri, Apr 6, 2012 at 3:59 PM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><div class="gmail_quote">On Fri, Apr 6, 2012 at 17:56, Mohamad M. Nasr-Azadani <span dir="ltr"><<a href="mailto:mmnasr@gmail.com" target="_blank">mmnasr@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>I just noticed the command DMCoarsen(). </div><div>I was wondering if there is a simple command which copies the values of the (global) vector created via the fine DM into the coarse DM? </div></blockquote></div><div>
<br></div></div>with petsc-dev or petsc-3.2 respectively,<div><br><div><a href="http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/DM/DMCreateInterpolation.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/DM/DMCreateInterpolation.html</a></div>
<div><a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMGetInterpolation.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMGetInterpolation.html</a></div><div><br>
</div><div>then</div>
<div><br></div><div><a href="http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Mat/MatRestrict.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Mat/MatRestrict.html</a></div></div>
</blockquote></div><br></div>