Changeset 5453


Ignore:
Timestamp:
Jun 30, 2008, 4:44:52 PM (14 years ago)
Author:
ole
Message:

Fixed georeferencing problem in culvert class

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/culvert_flows/culvert_class.py

    r5437 r5453  
    215215
    216216            # Indices corresponding to energy enquiry field for this opening
    217             coordinates = domain.get_centroid_coordinates() # Get all centroid points (x,y)
     217            coordinates = domain.get_centroid_coordinates(absolute=True) # Get all centroid points (x,y)
    218218            enquiry_indices = inside_polygon(coordinates, self.enquiry_polygons[i])
    219            
     219
     220            if len(enquiry_indices) == 0:
     221                msg = 'No triangles have been identified in specified region: %s' %str(self.enquiry_polygons[i])
     222                raise Exception, msg               
    220223           
    221224            # Get model values for points in enquiry polygon for this opening
Note: See TracChangeset for help on using the changeset viewer.