PCShell interface

Jed Brown jed at 59A2.org
Wed Jun 10 09:57:13 CDT 2009


With MatShell and the SNES/TS interfaces, the user's callback gets the
PETSc object, but this is not so in PCShell.  I find this pretty clumsy,
for example, since there is no PC, the user preconditioner can't call
PCGetOperators.  This means that in contrast to MatShell, the user
really can't write first-class PC implementations using PCShell.  It
also appears that it is not possible to implement PCApplyBAorAB without
obtaining the operator through some other channel.

Perhaps it's better in the long run to always write a full-blown
implementation (i.e. copy jacobi.c and modify), but I think it would
still be more consistent if PCShell passed the PC to the user's
callbacks.  What do you think?

Jed

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 260 bytes
Desc: OpenPGP digital signature
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20090610/4a516d89/attachment.sig>


More information about the petsc-dev mailing list