- Timestamp:
- Jun 22, 2010, 5:30:32 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_work/development/2010-projects/anuga_1d/base/limiters_python.py
r7855 r7868 37 37 def vanleer(a,b): 38 38 39 from numpy import abs, where39 from numpy import fabs, where 40 40 41 return where(( abs(a) + abs(b) >= 1.0e-12), (a*abs(b)+abs(a)*b)/(abs(a)+abs(b)), 0.0)41 return where((fabs(a) + fabs(b) >= 1.0e-12), (a*fabs(b)+fabs(a)*b)/(fabs(a)+fabs(b)), 0.0) 42 42 43 43
Note: See TracChangeset
for help on using the changeset viewer.