<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Hello,<br>
<br>
Is there a way to call a function in a PETSc example file from python?<br>
<br>
Explicitly, I'd like to call EvaluateFunction and EvaluateJacobian (resp. lines 123 and 147) of
<a href="https://www.mcs.anl.gov/petsc/petsc-current/src/tao/leastsquares/examples/tutorials/chwirut1.c.html" target="_blank">
https://www.mcs.anl.gov/petsc/petsc-current/src/tao/leastsquares/examples/tutorials/chwirut1.c.html</a><br>
from Python. <br>
<br>
Can petsc4py version 3.7.0 help with this?<br>
<br>
Thank you for your help,<br>
Jeffrey Larson<br>
</div>
</body>
</html>