[petsc-dev] DMDA_BOUNDARY_GHOSTED

Matthew Knepley knepley at gmail.com
Thu Sep 26 11:28:34 CDT 2013


On Thu, Sep 26, 2013 at 9:25 AM, Mark F. Adams <mfadams at lbl.gov> wrote:

> I am interested in making a cell centered test problem with Dirichlet BCs.
>  I want to go high(ish) order and doing explicit stencils (preferred) looks
> rather messy and I am interest in using ghost cells.  I assume this would
> entail using DMDA_BOUNDARY_GHOSTED.  I do not see any examples or
> documentation on using this other than just creating it.  Any suggestions?
>  I would think that there would have to be callback function for the user
> to set ghost values but I am not seeing anything like this around.  Perhaps
> I am not understand the intent of DMDA_BOUNDARY_GHOSTED.


My understanding is that it adds a single layer of ghost cells around the
domain boundary. Then these show up in the gxm, etc. so that
you can put values there if you want.

  Matt


>
> Mark




-- 
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-dev/attachments/20130926/82034c3b/attachment.html>


More information about the petsc-dev mailing list