Chris, 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.
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 ( http://beyondgrep.com/) to search the petsc4py source code, looking for the desired PETSc function. For example, ack MatSetValuesStencil returns src/PETSc/petscmat.pxi 222: int MatSetValuesStencil(PetscMat,PetscInt,PetscMatStencil[],PetscInt,PetscMatStencil[],PetscScalar[],PetscInsertMode) 1027: CHKERR( MatSetValuesStencil(A, but 'ack MatSetValueStencil' returns nothing. Hope it helps, Nate On Wed, Nov 18, 2015 at 12:20 PM Chris Eldred <[email protected]> wrote: > Hey petsc-dev, > > I was wondering if there was an analogue of MatSetValuesStencil in > petsc4py? I see a SetValueStencil method at > https://pythonhosted.org/petsc4py/apiref/petsc4py.PETSc.Mat-class.html, > but no SetValuesStencil method. > > Also, is this the correct place to direct questions about petsc4py? > There doesn't really seem to be any documentation or tutorials online > or a mailing list dedicated to petsc4py. > > Thanks, > Chris Eldred > -- > Chris Eldred > Postdoctoral Fellow, LAGA, University of Paris 13 > PhD, Atmospheric Science, Colorado State University, 2015 > DOE Computational Science Graduate Fellow (Alumni) > B.S. Applied Computational Physics, Carnegie Mellon University, 2009 > [email protected] >
