[petsc-dev] snes/examples/tutorials/ex27.c

Jed Brown jedbrown at mcs.anl.gov
Tue Nov 15 15:48:53 CST 2011


On Tue, Nov 15, 2011 at 15:44, Barry Smith <bsmith at mcs.anl.gov> wrote:

> How about a SNES level interface that backs into the TS for the
> implementation? The thing is "if one is solving a nonlinear problem they
> should use the nonlinear solver interface" not a completely different
> interface that exists for a different purpose.


Well, I don't choose KSP, SNES, or TS based on what kind of problem I'm
trying to solve, I choose it based on how I want to describe the problem.
So I might use SNES for a linear problem because I want to write a function
to evaluate the RHS and a function to evaluate the Jacobian. And I might
use TS for a steady problem because I want a principled way to do damping
and to accelerate certain regions.

I think it would be more confusing to use SNES because then we would need
to augment the SNES interface so the user can provide the IJacobian. Having
another function signature that the user has to implement is BAD.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20111115/dfc94d12/attachment.html>


More information about the petsc-dev mailing list