[petsc-users] [petsc4py] Python equivalent of KSPSetComputeRHS

Lisandro Dalcin dalcinl at gmail.com
Mon Jul 13 02:09:43 CDT 2015

On 12 July 2015 at 13:52, Francesco Caimmi <francesco.caimmi at polimi.it> wrote:
> Dear All,
> I am struggling to find a way to access the functions KSPSetComputeRHS and
> KSPSetComputeOperators using petsc4py.
> I cannot see these functions under PETSc.KSP()....
> Has this something to do with ksp.setPythonContext()? Or the setPythonContext
> function that is also available for matrices and vectors?

These functions are not currently exposed in petsc4py. They should be
easy to add, but right now I don't have the time right now. Please
open an issue in petsc4py's tracker at Bitbucket, so I do not forget.

Lisandro Dalcin
Research Scientist
Computer, Electrical and Mathematical Sciences & Engineering (CEMSE)
Numerical Porous Media Center (NumPor)
King Abdullah University of Science and Technology (KAUST)

4700 King Abdullah University of Science and Technology
al-Khawarizmi Bldg (Bldg 1), Office # 4332
Thuwal 23955-6900, Kingdom of Saudi Arabia

Office Phone: +966 12 808-0459

More information about the petsc-users mailing list