Ignore:
Timestamp:
Dec 22, 2008, 5:26:37 PM (14 years ago)
Author:
ole
Message:

Added test for culvert polygons and fixed bug when with is an integer

File:
1 edited

Legend:

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

    r5585 r6098  
    6767
    6868    # Short hands
    69     w = width/2*normal # Perpendicular vector of 1/2 width
     69    w = 0.5*width*normal # Perpendicular vector of 1/2 width
    7070    h = height*vector  # Vector of length=height in the
    7171                       # direction of the culvert
     
    7878    culvert_polygons['exchange_polygon0'] = array([p0,p1,p2,p3])
    7979
    80    
    8180    # Build exchange polygon 1
    8281    p0 = end_point1 + w
Note: See TracChangeset for help on using the changeset viewer.