On Tue, 12 Apr 2011, Lisandro Dalcin wrote: > After adding this test in petsc4py-dev/test/test_ksp.py : > > def testResetAndSolve(self): > self.ksp.reset() > self.testSolve() > self.ksp.reset() > self.testSolve() > self.ksp.reset() > > it seems there is some memory bleeding: > > [0]Total space allocated 256 bytes > [ 0]80 bytes KSPSetUp_BCGSL() line 476 in > /home/devel/petsc/dev/src/ksp/ksp/impls/bcgsl/bcgsl.c > [0] KSPSetUp() line 184 in > /home/devel/petsc/dev/src/ksp/ksp/interface/itfunc.c > [0] KSPSolve() line 332 in > /home/devel/petsc/dev/src/ksp/ksp/interface/itfunc.c > > These are workspace arrays that are re-allocated at every KSPSetup_BCGSL call. > > Not sure about the proper way to fix this, but I would deallocate the > arrays at KSPReset_BCGSL. Can anyone help me with this? > > > PS: Will we ever have petsc4py in the nightly builds? Is there > something to be done from my side?
Sorry - will check on adding one.. Satish
