Thanks Jed. Makes sense. For simple copying values, is there anyway around it so we don't create the matrix?
Thanks, Mohamad On Fri, Apr 6, 2012 at 3:59 PM, Jed Brown <jedbrown at mcs.anl.gov> wrote: > On Fri, Apr 6, 2012 at 17:56, Mohamad M. Nasr-Azadani <mmnasr at > gmail.com>wrote: > >> I just noticed the command DMCoarsen(). >> I was wondering if there is a simple command which copies the values of >> the (global) vector created via the fine DM into the coarse DM? >> > > with petsc-dev or petsc-3.2 respectively, > > > http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/DM/DMCreateInterpolation.html > > http://www.mcs.anl.gov/petsc/petsc-current/docs/manualpages/DM/DMGetInterpolation.html > > then > > > http://www.mcs.anl.gov/petsc/petsc-dev/docs/manualpages/Mat/MatRestrict.html > -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120406/90553388/attachment.htm>
