dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #20188
[Bug 676000] Re: Missing destructor warning for CellFunction from Python
Seems to be fixed.
** Changed in: dolfin
Status: Confirmed => Fix Committed
--
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: Fix Committed
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