Thanks, Matt. Let me make sure, so
Dirichlet BC on the left boundary --> u[i= 0][]  = constant
Neumann BC on the right boundary --> u[i=16][]-u[i=15][])/dx = constant
is that correct?

best,
Alan


On Fri, Sep 2, 2011 at 10:20 AM, Jed Brown <jedbrown at mcs.anl.gov> wrote:

> On Fri, Sep 2, 2011 at 09:20, Alan Wei <zhenglun.wei at gmail.com> wrote:
>
>> I thought there is a ghosted grid around Dirichlet and Neumann BC's.
>
>
> Only if you ask for it with DMDA_BOUNDARY_GHOSTED (not available in
> petsc-3.1). This example does not.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20110902/9c2b5369/attachment.htm>

Reply via email to