- Timestamp:
- Apr 23, 2010, 10:15:46 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/abstract_2d_finite_volumes/util.py
r7693 r7695 14 14 from shutil import copy 15 15 16 from anuga.utilities.numerical_tools import ensure_numeric, angle 16 from anuga.utilities.numerical_tools import ensure_numeric, angle, NAN 17 17 18 18 from math import sqrt, atan, degrees … … 300 300 # * moving the reference direction from [1,0] to North 301 301 # * changing from counter clockwise to clocwise. 302 303 # if indeterminate, just return 304 if uh==0 and vh==0: 305 return NAN 302 306 303 307 return degrees(angle([uh, vh], [0, -1]))
Note: See TracChangeset
for help on using the changeset viewer.