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 <rbrogg...@gmail.com> wrote: > > 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 is my class and its constructor (pretty simple): > (Again: I'm sure that the problem is not on the other members inherited but > definitely on the Mesh and EquationSystem initializations) > > class Cable_Equation_CLASSIC: public Cable_Equation { > > > EquationSystems equation_systems; > > Mesh mesh; > > > > public: > > > > //Constructor for non-parallel execution > > Cable_Equation_CLASSIC(const Cable_Problem_Data & Data, const GetPot & > Command_Line) : Cable_Equation(Data,Command_Line), mesh(), > equation_systems(mesh){}; > > //Constructor for parallel execution > > Cable_Equation_CLASSIC(const Cable_Problem_Data & Data, const GetPot & > Command_Line, const Mesh & other_mesh) : Cable_Equation(Data,Command_Line), > mesh(other_mesh), equation_systems(mesh){}; > > > > void solve_cable_problem_complete(){return ;}; > }; > > > > Thanks > ------------------------------------------------------------------------------ > Comprehensive Server Monitoring with Site24x7. > Monitor 10 servers for $9/Month. > Get alerted through email, SMS, voice calls or mobile push notifications. > Take corrective actions from your mobile device. > http://p.sf.net/sfu/Zoho > _______________________________________________ > Libmesh-users mailing list > Libmesh-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/libmesh-users ------------------------------------------------------------------------------ Comprehensive Server Monitoring with Site24x7. Monitor 10 servers for $9/Month. Get alerted through email, SMS, voice calls or mobile push notifications. Take corrective actions from your mobile device. http://p.sf.net/sfu/Zoho _______________________________________________ Libmesh-users mailing list Libmesh-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libmesh-users