Changeset 7997
- Timestamp:
- Sep 3, 2010, 11:02:27 AM (14 years ago)
- Location:
- trunk/anuga_core/source/anuga/structures
- Files:
-
- 1 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/structures/boyd_box_operator.py
r7996 r7997 3 3 import anuga.utilities.log as log 4 4 import math 5 import types 5 6 6 7 import structure_operator … … 21 22 end_point0, 22 23 end_point1, 24 losses, 23 25 width, 24 26 height=None, … … 39 41 apron, 40 42 manning, 41 enquiry_gap, 43 enquiry_gap, 42 44 description, 43 45 verbose) 46 47 48 if type(losses) == types.DictType: 49 self.sum_loss = sum(losses.values()) 50 elif type(losses) == types.ListType: 51 self.sum_losses = sum(losses) 52 else: 53 self.sum_losses = losses 44 54 45 55 self.use_momentum_jet = use_momentum_jet … … 50 60 self.culvert_height = self.get_culvert_height() 51 61 52 53 self.sum_loss = 0.054 62 self.max_velocity = 10.0 55 63 self.log_filename = None
Note: See TracChangeset
for help on using the changeset viewer.