Justin Chang <[email protected]> writes:

> 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:

Since you've done the work, you might as well submit it as a pull
request.

> 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

Attachment: signature.asc
Description: PGP signature

Reply via email to