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.

Xiangdong


On Mon, Mar 3, 2014 at 9:58 PM, Jed Brown <[email protected]> wrote:

> Xiangdong <[email protected]> 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
>

Reply via email to