[petsc-users] How to use class function in SNESSetFunction

Ping He friedenhe at gmail.com
Mon Mar 20 14:01:30 CDT 2017


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


More information about the petsc-users mailing list