<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Mar 5, 2014 at 12:54 PM, Xiangdong <span dir="ltr"><<a href="mailto:epscodes@gmail.com" target="_blank">epscodes@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 dir="ltr">If I first define a DM, and obtain the solution vector on this DM (through non multigrid method). However, given that this DM is so fine, I may only need to save/view the solution on a coarsen grid. Is there some functions available in petsc for this instead of writing my own vec scatter?</div>
</blockquote><div><br></div><div>Interpolation between general DMs does not make sense because we do not prescribe anything</div><div>about the function representation. DMDA has interpolation routines, and so does DMPlex.</div>
<div><br></div><div> Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Thank you.</div><span class="HOEnZb"><font color="#888888"><div>
<br></div><div>Xiangdong</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 3, 2014 at 9:58 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>Xiangdong <<a href="mailto:epscodes@gmail.com" target="_blank">epscodes@gmail.com</a>> writes:<br>
> Could you please expand it a little more on using DMCoarsenHookAdd to<br>
> restrict a fine vector on a coarse grid? The only example I can find is<br>
> ex48 in snes. It is not clear how the coarsen vector are generated from<br>
> that example.<br>
<br>
</div>Look at the use in src/ts/impls/implicit/theta/theta.c<br>
</blockquote></div><br></div>
</div></div></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>