dolfin team mailing list archive
-
dolfin team
-
Mailing list archive
-
Message #20171
[Bug 676000] [NEW] Missing destructor warning for CellFunction from Python
Public bug reported:
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()
** Affects: dolfin
Importance: Undecided
Assignee: Johan Hake (johan-hake)
Status: Confirmed
** Changed in: dolfin
Status: New => Confirmed
** Changed in: dolfin
Assignee: (unassigned) => Johan Hake (johan-hake)
--
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()
Follow ups
References