Ignore:
Timestamp:
Apr 15, 2013, 11:58:21 AM (12 years ago)
Author:
steve
Message:

Mainly small change to allow scientific and scipy interpolation.

File:
1 edited

Legend:

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

    r8680 r8825  
    2424    def __init__(self,
    2525                 domain,
    26                  end_points,
    27                  exchange_lines,
    28                  enquiry_points,
    29                  width,
    30                  height,
    31                  apron,
    32                  manning,
    33                  enquiry_gap,
    34                  description,
    35                  label,
    36                  structure_type,
    37                  logging,
    38                  verbose):
     26                 end_points=None,
     27                 exchange_lines=None,
     28                 enquiry_points=None,
     29                 invert_elevations=None,
     30                 width=None,
     31                 height=None,
     32                 diameter=None,
     33                 apron=None,
     34                 manning=None,
     35                 enquiry_gap=None,
     36                 description=None,
     37                 label=None,
     38                 structure_type=None,
     39                 logging=None,
     40                 verbose=None):
    3941                     
    4042        """
     
    5355        self.exchange_lines = ensure_numeric(exchange_lines)
    5456        self.enquiry_points = ensure_numeric(enquiry_points)
     57        self.invert_elevations = ensure_numeric(invert_elevations)
     58
     59        assert self.end_points == None or self.exchange_lines == None
    5560
    5661       
     
    5863            height = width
    5964
     65        if width is None:
     66            width = diameter
     67
    6068        if apron is None:
    6169            apron = width
    6270
     71
     72        assert width is not None
     73
     74
    6375        self.width  = width
    6476        self.height = height
     77        self.diameter = diameter
    6578        self.apron  = apron
    6679        self.manning = manning
     
    401414    def get_culvert_diameter(self):
    402415   
    403             return self.width
     416            return self.diameter
    404417       
    405418       
Note: See TracChangeset for help on using the changeset viewer.