Hi all,

I noticed that there's no VecChop in petsc4py. I see a MatChop, but was
wondering if you guys can add the petsc4py implementation of VecChop.

I am guessing it would be something like:

in src/PETSc/Vec.pyx:

def chop(self, tol):
  cdef PetscReal rval = asReal(tol)
  CHKERR( VecChop(self.vec, rval) )

in src/PETSc/petscvec.pxi:

int VecChop(PetscVec, PetscReal)

Thanks,
Justin

Reply via email to