We don't currently have a "setter" allowing you to overwrite the function pointer.
The easiest thing for you to do is "fix" the DMDA_Q0 to handle also handle periodic boundary conditions. It is DMCreateInterpolation_DA_2D_Q0() or 1d or 3d in src/dm/impls/da then send us a patch or make a pull request and we'll stick it in the development copy. Barry > On Jun 26, 2015, at 1:20 PM, Michele Rosso <[email protected]> wrote: > > Hi, > > I am wondering if there is a way to use a custom interpolation routine for > DMDA. > The reason is that DMDA_Q0 does not support periodic BCs and I need that. > Thanks, > > Michele
