Creating a custom PETScSNESSolver

You could just use petsc4py directly, see Using petsc4py.PETSc.SNES directly - #12 by nate

1 Like