<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Mon, Dec 2, 2013 at 5:01 PM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov" target="_blank">jedbrown@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">Matthew Knepley <<a href="mailto:knepley@gmail.com">knepley@gmail.com</a>> writes:<br>
<br>
> When you and Peter changed the way SNES used to work, I asked you how I<br>
> should<br>
> change Plex. You told me to do this:<br>
><br>
>     ierr = DMSNESSetFunctionLocal(dm,  (PetscErrorCode<br>
> (*)(DM,Vec,Vec,void*)) DMPlexComputeResidualFEM, &user);CHKERRQ(ierr);<br>
>     ierr = DMSNESSetJacobianLocal(dm,  (PetscErrorCode<br>
> (*)(DM,Vec,Mat,Mat,MatStructure*,void*)) DMPlexComputeJacobianFEM,<br>
> &user);CHKERRQ(ierr);<br>
<br>
</div>Can you find the email?  I don't think I would have recommended this.<br>
<div class="im"><br>
> which I did. Moreover, this is how it always worked, namely specifying the<br>
> local function.<br>
> What exactly are you proposing to replace this?<br>
<br>
</div>DMPlexSNESSetFunctionFEM(), similar to DMDASNESSetFunctionLocal in<br>
src/snes/examples/tutorials/ex5.c and ex19.c.<br>
</blockquote></div><br>What exactly is the difference? And now I know that both interfaces are bad because</div><div class="gmail_extra">I cannot even tell the difference by looking.</div><div class="gmail_extra"><br></div>
<div class="gmail_extra">   Matt<br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>