[petsc-users] problem with MatShellGetContext

Jed Brown jed at jedbrown.org
Wed Aug 5 11:35:05 CDT 2015


Matthew Knepley <knepley at gmail.com> writes:
> Yes, you are passing a C++ function userMult, so the compiler sticks "this"
> in as the first argument. We do not
> recommend this kind of wrapping.

I.e., either make it a stand-alone function or make the class function static.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20150805/7a27163e/attachment.pgp>


More information about the petsc-users mailing list