Ignore:
Timestamp:
Nov 12, 2007, 9:53:05 AM (17 years ago)
Author:
duncan
Message:

bug fix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/utilities/quad.py

    r4779 r4808  
    143143            point_id = int(args[1])
    144144            x, y = self.mesh.get_node(point_id, absolute=True)
    145 
    146             #print point_id, x, y
    147145        elif len(args) == 3:
    148146            x = float(args[1])
     
    445443    #print mesh.coordinates
    446444
    447    
    448     nodes = mesh.get_nodes(absolute=True)
    449     xmin = min(nodes[:,0])
    450     xmax = max(nodes[:,0])
    451     ymin = min(nodes[:,1])
    452     ymax = max(nodes[:,1])
    453 
    454     # Don't know why this didn't work
    455     #xmin, xmax, ymin, ymax = mesh.get_extent(absolute=True)
     445    xmin, xmax, ymin, ymax = mesh.get_extent(absolute=True)
    456446   
    457447    # Ensure boundary points are fully contained in region
     
    473463   
    474464    #FIXME: Use mesh.filename if it exists
     465    # why?
    475466    root = Cell(ymin, ymax, xmin, xmax,mesh,
    476                 #name = ....
    477467                max_points_per_cell = max_points_per_cell)
    478468
Note: See TracChangeset for help on using the changeset viewer.