Ignore:
Timestamp:
Aug 10, 2007, 3:16:01 PM (17 years ago)
Author:
duncan
Message:

ticket#189 - hacky fix to unproven memory leak

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/pmesh/mesh.py

    r4665 r4668  
    11651165                              meshDict['pointlist'])
    11661166        #print "%%%%%%%%%%%%%%%%%%%%%%%%%%%generated",generatedMesh
     1167        generatedMesh['qaa'] = 1
    11671168        generatedMesh['generatedsegmentmarkerlist'] = \
    11681169             segment_ints2strings(generatedMesh['generatedsegmentmarkerlist'],
     
    14911492        triangle attribute list: [(T1att), (T2att), ...]
    14921493
    1493 
    1494             (list of a list of strings)
    1495         lone point list:[point1, ...] (list of integers)
    14961494        """
    14971495        #Clear the current generated mesh values
     
    15671565            #print "Removing the loner", loner
    15681566            #self.meshVertices.pop(loner)
    1569 
     1567        # delete the info from this data structure
     1568        del genDict['generatedtriangleneighborlist']
     1569        del genDict['generatedpointmarkerlist']
     1570        del genDict['generatedpointlist']
     1571        del genDict['generatedpointattributetitlelist']
     1572        del genDict['generatedsegmentlist']
     1573        del genDict['generatedsegmentmarkerlist']
     1574        del genDict['generatedtrianglelist']
     1575        del genDict['generatedtriangleattributelist']
     1576        del genDict['generatedpointattributelist']
     1577        genDict['zpp'] = 1 # just an identifier
     1578           
    15701579    def setMesh(self, genDict):
    15711580        """
Note: See TracChangeset for help on using the changeset viewer.