[petsc-users] 4th order stencil within PETSc

Matthew Knepley knepley at gmail.com
Tue Sep 16 18:28:52 CDT 2014


On Tue, Sep 16, 2014 at 6:14 PM, John Alletto <4bikerboyjohn at gmail.com>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140916/7cecac76/attachment.html>


More information about the petsc-users mailing list