Dear Matt,

I know it is an old thread and your solution works well, but I still want to ask if there are any alternative instead of setting the member function "static". The issue is that I need to use multiple member functions (20+) in SNESSetFunction and numerous class variables. So changing all of them to static will need quite a lot of code/structure change. Thanks very much in advance.

Regards,
Ping

Reply via email to