← Back to team overview

dolfin team mailing list archive

[Bug 676000] Re: Missing destructor warning for CellFunction from Python

 

Check if my recent MeshFunction commit fix this bug

-- 
Missing destructor warning for CellFunction from Python
https://bugs.launchpad.net/bugs/676000
You received this bug notification because you are a member of DOLFIN
Team, which is subscribed to DOLFIN.

Status in DOLFIN: Confirmed

Bug description:
The warning 

  swig/python detected a memory leak of type 'dolfin::CellFunction< dolfin::uint > *', no destructor found.

is printed printed when a function that returns a CellFunction<uint> is called from the Python interface. The below program reproduces the error.

  from dolfin import *

  if not has_trilinos():
      print "DOLFIN has not been configured with Trilinos. Exiting."
      exit()

  mesh = UnitSquare(4, 4)
  coloring = CellColoring(mesh)
  colors = coloring.compute_local_cell_coloring()





References