[petsc-users] Use of DM to update ghost values
Matthew Knepley
knepley at gmail.com
Fri Apr 4 19:03:15 CDT 2014
On Fri, Apr 4, 2014 at 6:41 PM, TAY wee-beng <zonexo at gmail.com> wrote:
> Hi,
>
> Supposed, I use DM to construct my grid. I would like to know if DM can be
> used to update the ghost values easily?
>
DMGlobalToLocalBegin/End().
> If I can use staggered grid, does it mean I have to create 3 DM grids
> (x,y,z)?
>
You can also just interpret components in different ways. See SNES ex30.
> Also, how can I solve the momentum eqn involving u,v,w using KSP?
>
-pc_type gamg.
> What examples can I follow for the above requirements?
>
SNES ex43, ex62, KSP ex48.
Matt
> Thank you.
>
> --
> Yours sincerely,
>
> TAY wee-beng
>
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140404/8cb5bd40/attachment.html>
More information about the petsc-users
mailing list