[petsc-users] Use of DM to update ghost values

TAY wee-beng zonexo at gmail.com
Sat Apr 5 07:43:11 CDT 2014


On 5/4/2014 8:03 AM, Matthew Knepley wrote:
> On Fri, Apr 4, 2014 at 6:41 PM, TAY wee-beng <zonexo at gmail.com 
> <mailto: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.

Hi,

I just checked. There's no ksp ex48. Are you referring to ex46?

In ex46, it mentions that it is similar to ex2 but with DM.

What is the advantage of DM?

Also, Can I use non uniform grids with DM?

Thanks
>
>   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/20140405/7aaf74a2/attachment-0001.html>


More information about the petsc-users mailing list