<div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div></div><div>Other suggestions on how to best integrate staggered finite differences within the current PETSc framework are ofcourse also highly welcome. </div><div>Our current thinking was to pack it into a DMSHELL (which has the problem of not having a restriction interface). </div><div><br></div></div></blockquote><div><br></div><div>Using DMShell is the cleanest approach.<br><br></div><div>An alternative is to have you user code simply take control of all of the configuration of the PCMG object. E.g. you call your user code which creates the restriction operator, you pull out the PC and call PCMGSetRestriction() on etc. This can be done easily performed in the context of linear problems. For non-linear problems, you could jam this setup code inside your ComputeJacobian function.<br><br></div><div>This is all possible, albeit clunky and kinda ugly. It works though if you need something before Barry adds the required support in PCMG.<br></div><div><br></div><div>Cheers<br></div><div>  Dave<br></div><div><br><br></div></div></div></div>