Re: [petsc-users] Calling PETSc functions from Python using petsc4py

2017-04-06 Thread Jed Brown
No, these are not part of the PETSc library so they would need to be compiled and called separately (you can do that, but it isn't part of petsc4py). "Larson, Jeffrey M." writes: > Hello, > > Is there a way to call a function in a PETSc example file from python? > >

[petsc-users] Calling PETSc functions from Python using petsc4py

2017-04-06 Thread Larson, Jeffrey M.
Hello, Is there a way to call a function in a PETSc example file from python? Explicitly, I'd like to call EvaluateFunction and EvaluateJacobian (resp. lines 123 and 147) of https://www.mcs.anl.gov/petsc/petsc-current/src/tao/leastsquares/examples/tutorials/chwirut1.c.html from Python. Can