<div dir="ltr">Chris,<div><br></div><div>I am not sure if this is the right place or not, but it seems to me that MatSetValuesStencil is the only function called in petsc4py. I don't see a wrapper for MatSetValueStencil implemented.</div><div><br></div><div>It can be tricky to figure out what is going on in petsc4py--your best bet is to look at source code. In the lack of documentation, I use ack (<a href="http://beyondgrep.com/">http://beyondgrep.com/</a>) to search the petsc4py source code, looking for the desired PETSc function. For example,</div><div><br></div><div>ack MatSetValuesStencil</div><div><br></div><div>returns</div><div><br></div><div><div>src/PETSc/petscmat.pxi</div><div>222:    int MatSetValuesStencil(PetscMat,PetscInt,PetscMatStencil[],PetscInt,PetscMatStencil[],PetscScalar[],PetscInsertMode)</div><div>1027:        CHKERR( MatSetValuesStencil(A,</div></div><div><br></div><div>but '<span style="line-height:1.5">ack MatSetValueStencil' returns nothing. Hope it helps,</span></div><div><br></div><div>Nate</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 18, 2015 at 12:20 PM Chris Eldred <<a href="mailto:chris.eldred@gmail.com">chris.eldred@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey petsc-dev,<br>
<br>
I was wondering if there was an analogue of MatSetValuesStencil in<br>
petsc4py? I see a SetValueStencil method at<br>
<a href="https://pythonhosted.org/petsc4py/apiref/petsc4py.PETSc.Mat-class.html" rel="noreferrer" target="_blank">https://pythonhosted.org/petsc4py/apiref/petsc4py.PETSc.Mat-class.html</a>,<br>
but no SetValuesStencil method.<br>
<br>
Also, is this the correct place to direct questions about petsc4py?<br>
There doesn't really seem to be any documentation or tutorials online<br>
or a mailing list dedicated to petsc4py.<br>
<br>
Thanks,<br>
Chris Eldred<br>
--<br>
Chris Eldred<br>
Postdoctoral Fellow, LAGA, University of Paris 13<br>
PhD, Atmospheric Science, Colorado State University, 2015<br>
DOE Computational Science Graduate Fellow (Alumni)<br>
B.S. Applied Computational Physics, Carnegie Mellon University, 2009<br>
<a href="mailto:chris.eldred@gmail.com" target="_blank">chris.eldred@gmail.com</a><br>
</blockquote></div>