Re: [Libmesh-users] Memory leak

2014-10-18 Thread Rodrigo Broggi
You mean just invert : EquationSystems equation_systems; Mesh mesh; with: Mesh mesh; EquationSystems equation_systems; ? Cause the order of initialization is actually first mesh than equation_system in the constructore... Anyway I tried but

Re: [Libmesh-users] Memory leak

2014-10-18 Thread John Peterson
Mesh should be declared first in your class, to match the order of initialization... Other than that I don't see how there can be a memory leak, because you don't allocate any memory... > On Oct 18, 2014, at 3:15 AM, Rodrigo Broggi wrote: > > Hi guys, > > I'm trying to write a class that has

[Libmesh-users] Memory leak

2014-10-18 Thread Rodrigo Broggi
Hi guys, I'm trying to write a class that has a Mesh and an EquationSystem members between its internal members. For some reason just initializing these members is sufficient to give me a big memory leak. I am sure that the problem is there since commenting these members it works just fine. here