[petsc-users] DMDA questions

Xiangdong epscodes at gmail.com
Wed Mar 5 12:54:20 CST 2014

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?

Thank you.


On Mon, Mar 3, 2014 at 9:58 PM, Jed Brown <jed at jedbrown.org> wrote:

> Xiangdong <epscodes at gmail.com> writes:
> > Could you please expand it a little more on using DMCoarsenHookAdd to
> > restrict a fine vector on a coarse grid? The only example I can find is
> > ex48 in snes. It is not clear how the coarsen vector are generated from
> > that example.
> Look at the use in src/ts/impls/implicit/theta/theta.c
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140305/9a3561c4/attachment.html>

More information about the petsc-users mailing list