Ignore:
Timestamp:
Jul 30, 2008, 3:48:52 PM (16 years ago)
Author:
ole
Message:

Testing that culvert polygons are inside mesh

File:
1 edited

Legend:

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

    r5570 r5584  
    134134        for key in P.keys():
    135135            print 'Key', key
    136             for point in P[key]:
    137 
    138                 print 'Passing in:', point
    139                 msg = 'Point %s in polygon %s for culvert %s did not'\
    140                       %(str(point), key, self.label)
    141                 msg += 'fall within the domain boundary.'
    142                 assert is_inside_polygon(point, bounding_polygon), msg
     136            if key in ['exchange_polygon0',
     137                       'exchange_polygon1',
     138                       'enquiry_polygon0',
     139                       'enquiry_polygon1']:
     140                for point in P[key]:
     141               
     142                    print 'Passing in:', point
     143                    msg = 'Point %s in polygon %s for culvert %s did not'\
     144                        %(str(point), key, self.label)
     145                    msg += 'fall within the domain boundary.'
     146                    assert is_inside_polygon(point, bounding_polygon), msg
    143147       
    144148
Note: See TracChangeset for help on using the changeset viewer.