[petsc-users] A problem with MatFDColoringSetFunction

Jed Brown jed at jedbrown.org
Tue Jan 11 19:04:08 CST 2022


Barry Smith <bsmith at petsc.dev> writes:

>   Thanks for the alternative. 
>
>   @jed does this mean we need to do our casting of functions like this everywhere?

Whenever our interfaces accept a function with a non-unique prototype, the interface should take void(*)(void) instead of PetscErrorCode(*)(void).

I think we should also be a bit more judicious about where we absolutely need this hack.


More information about the petsc-users mailing list