Changeset 8004


Ignore:
Timestamp:
Sep 4, 2010, 9:46:35 PM (8 years ago)
Author:
habili
Message:

using "import anuga"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/anuga_core/source/anuga/structures/structure_operator.py

    r7998 r8004  
    1 from anuga.geometry.polygon import inside_polygon, polygon_area
    2 from anuga.config import g
     1import anuga
    32import numpy as num
    43import math
     
    117116            ep = self.inlet_equiry_points[i]
    118117           
    119             area = polygon_area(polygon)
     118            area = anuga.polygon_area(polygon)
    120119           
    121120            msg = 'Polygon %s ' %(polygon)
     
    124123
    125124            msg = 'Enquiry point falls inside an exchange polygon.'
    126             assert not inside_polygon(ep, polygon), msg
     125            assert not anuga.inside_polygon(ep, polygon), msg
    127126   
    128127           
Note: See TracChangeset for help on using the changeset viewer.