<div class="gmail_quote">On Sat, Oct 1, 2011 at 12:53, Jed Brown <span dir="ltr">&lt;<a href="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Are you sure the function you are passing in is static? Show us the code snippets.</blockquote></div><br><div>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.</div>