On Fri, Apr 4, 2014 at 6:41 PM, TAY wee-beng <[email protected]> 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

Reply via email to