[petsc-dev] TS is creating SNES ALWAYS even when not needed

Jed Brown jed at jedbrown.org
Sat Apr 29 21:51:10 CDT 2017


Barry Smith <bsmith at mcs.anl.gov> writes:

> For example TSSetFromOptions() creates SNES, TSSetRHSFunction()
> creates SNES, TSSetProblemType() creates SNES!
>
> This is pitifully bad design, TS should only be creating SNES when
> SNES is needed! Unfortunately TS is now so badly contaminated with
> SNES it is not trivial to remove it.

It was an attempt to reduce the number of references and prevent the
opportunity for a user to, for example, TSGetSNES and then change the
SNES Jacobian.  But I'll need to overhaul this with IRKs anyway, for
which the SNES sees a larger system than what the user is providing.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 832 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20170429/28bb39e0/attachment.sig>


More information about the petsc-dev mailing list