User-defined preconditioner in petsc4py using "shell" type
Hello,
Following https://www.mcs.anl.gov/petsc/petsc4py-current/docs/apiref/petsc4py.PETSc.PC.Type-class.html, I would like to specify my own block preconditioning routine with petsc4py by using ksp.getPC().setType("shell")
.
However, PETSc complains about a missing routine:
petsc4py.PETSc.Error: error code 83
[0] PCApply() at /usr/local/petsc/src/ksp/pc/interface/precon.c:441
[0] PCApply_Shell() at /usr/local/petsc/src/ksp/pc/impls/shell/shellpc.c:108
[0] No apply() routine provided to Shell PC
When querying the options, it seems that the PCShellSetApply (https://petsc.org/release/manualpages/PC/PCShellSetApply/) equivalence is not implemented in petsc4py. Is that right? Or am I missing something here?
I would highly appreciate this option.
Best, Marc