Yes, I am using DMDA. I looked at the DM index page with keywords *coarsen*, but did not realize that *interpolation* is the key word to search. Thanks pointing out.
http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/index.html Xiangdong On Wed, Mar 5, 2014 at 1:57 PM, Jed Brown <[email protected]> wrote: > Xiangdong <[email protected]> writes: > > > 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? > > Where did you try searching and what terms did you try before asking? > > > http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMCoarsen.html > > http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMCreateInterpolation.html > > http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMCreateInjection.html >
