Changeset 9094
- Timestamp:
- Apr 26, 2014, 1:56:02 PM (11 years ago)
- Location:
- trunk/anuga_core/source/anuga
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga/__init__.py
r9059 r9094 160 160 from anuga.operators.set_friction_operators import Depth_friction_operator 161 161 162 from anuga.operators.set_elevation_operator import Set_elevation_operator 163 from anuga.operators.set_quantity_operator import Set_quantity_operator 164 from anuga.operators.set_stage_operator import Set_stage_operator 165 166 from anuga.operators.erosion_operators import Bed_shear_erosion_operator 167 from anuga.operators.erosion_operators import Flat_slice_erosion_operator 168 from anuga.operators.erosion_operators import Flat_fill_slice_erosion_operator 162 169 163 170 #--------------------------- -
trunk/anuga_core/source/anuga/utilities/function_utils.py
r9029 r9094 39 39 t =0.0 40 40 41 #function(x,y,t) 41 42 try: 42 43 function(x,y,t) 43 except :44 except TypeError: 44 45 #print 'Problem calling with three arguments' 45 46 try: 46 47 function(x,y) 47 except :48 except TypeError: 48 49 #print 'Problem calling with 2 array arguments' 49 50 try: 50 51 function(t) 51 except :52 except TypeError: 52 53 #print 'problem calling with one scalar argument' 53 54 msg = 'Input argument cannot be called as f(t), f(x,y) or f(x,y,t)' 54 55 raise Exception, msg 56 except ValueError: 57 #print 'problem calling out of range' 58 return 't' 55 59 else: 56 60 return 't' 61 except ValueError: 62 return 'x,y' 57 63 else: 58 64 return 'x,y' 65 except ValueError: 66 return 'x,y,t' 59 67 else: 60 68 return 'x,y,t'
Note: See TracChangeset
for help on using the changeset viewer.