Just did, it works for my test problems, so hope it gets passed ;) On Mon, Sep 21, 2015 at 1:53 PM, Jed Brown <[email protected]> wrote:
> 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 >
