[petsc-users] question about contexts
Jed Brown
jedbrown at mcs.anl.gov
Sat Oct 1 13:03:20 CDT 2011
On Sat, Oct 1, 2011 at 12:53, Jed Brown <jedbrown at mcs.anl.gov> wrote:
> Are you sure the function you are passing in is static? Show us the code
> snippets.
Attached is a simple example of setting callbacks into class methods using
standard C function pointers. You can use this approach for any callbacks in
PETSc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111001/77eb29f0/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: callback.cc
Type: text/x-c++src
Size: 1021 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20111001/77eb29f0/attachment.cc>
More information about the petsc-users
mailing list