<div dir="ltr"><div>Yes, I am using DMDA. I looked at the DM index page with keywords <i>coarsen</i>, but did not realize that <i>interpolation</i> is the key word to search. Thanks pointing out.</div><div><br></div><a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/index.html">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/index.html</a><br>
<div><br></div><div>Xiangdong</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Mar 5, 2014 at 1:57 PM, Jed Brown <span dir="ltr"><<a href="mailto:jed@jedbrown.org" target="_blank">jed@jedbrown.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">Xiangdong <<a href="mailto:epscodes@gmail.com">epscodes@gmail.com</a>> writes:<br>
<br>
> If I first define a DM, and obtain the solution vector on this DM (through<br>
> non multigrid method).  However, given that this DM is so fine, I may only<br>
> need to save/view the solution on a coarsen grid. Is there some functions<br>
> available in petsc for this instead of writing my own vec scatter?<br>
<br>
</div>Where did you try searching and what terms did you try before asking?<br>
<br>
<a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMCoarsen.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMCoarsen.html</a><br>
<a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMCreateInterpolation.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMCreateInterpolation.html</a><br>
<a href="http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMCreateInjection.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMCreateInjection.html</a><br>
</blockquote></div><br></div>