← Back to team overview

dolfin team mailing list archive

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

 

** Changed in: dolfin
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of DOLFIN
Team, which is subscribed to DOLFIN.
https://bugs.launchpad.net/bugs/676000

Title:
  Missing destructor warning for CellFunction from Python

Status in DOLFIN:
  Fix Released

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