On Thu, Dec 1, 2016 at 6:50 AM, Harshad Sahasrabudhe <[email protected]> wrote:
> Hi all, > > The libmesh reference counter shows that there are fewer destructions that > creations. Is there any easy way to find out which objects in my code are > not destroyed? > > Thanks, > Harshad > The reference count info should give you some helpful clues, e.g. you can see that you have more creations than deletions for NumericVectors, Elems, and DofObjects. To get more detail than that, you can use valgrind. David > > ------------------------------------------------------------ > ---------------- > | Reference count information > | > ------------------------------------------------------------ > ---------------- > | N7libMesh10FEAbstractE reference count information: > | Creations: 2485 > | Destructions: 2485 > | N7libMesh12LinearSolverIdEE reference count information: > | Creations: 9 > | Destructions: 9 > | N7libMesh12SparseMatrixIdEE reference count information: > | Creations: 19 > | Destructions: 19 > | N7libMesh13NumericVectorIdEE reference count information: > | Creations: 35 > | Destructions: 0 > | N7libMesh15EquationSystemsE reference count information: > | Creations: 12 > | Destructions: 12 > | N7libMesh15NonlinearSolverIdEE reference count information: > | Creations: 2 > | Destructions: 2 > | N7libMesh16PointLocatorBaseE reference count information: > | Creations: 11 > | Destructions: 11 > | N7libMesh4ElemE reference count information: > | Creations: 140901 > | Destructions: 0 > | N7libMesh4NodeE reference count information: > | Creations: 11960 > | Destructions: 11960 > | N7libMesh6DofMapE reference count information: > | Creations: 11 > | Destructions: 11 > | N7libMesh6SystemE reference count information: > | Creations: 11 > | Destructions: 11 > | N7libMesh8TreeBaseE reference count information: > | Creations: 11 > | Destructions: 11 > | N7libMesh9DofObjectE reference count information: > | Creations: 173416 > | Destructions: 0 > ------------------------------------------------------------ > ---------------- > Memory leak detected! > ------------------------------------------------------------ > ------------------ > _______________________________________________ > Libmesh-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/libmesh-users > ------------------------------------------------------------------------------ _______________________________________________ Libmesh-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libmesh-users
