On Tue, Sep 16, 2014 at 6:14 PM, John Alletto <[email protected]>
wrote:
>
> I have worked with the 7-point star stencil and the 27-point Box stencil.
> Each goes out from its center +- 1 position in i,j,k.
>
> I have a 13-point star stencil (4th order) which goes out +- 2 positions
> from its center in i,j,k.
>
> Can I use this in the PETSc ? Do I have to do something different than
> what is done with smaller conventional stencil’s?
>
When you create the DMDA, give a stencil width of 2 (the s parameter). Then
you can index +- 2 outside of your partition.
Thanks,
Matt
>
> Respectfully
> John
>
--
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