Changeset 7193 for branches/numpy/anuga/shallow_water
- Timestamp:
- Jun 12, 2009, 10:28:57 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy/anuga/shallow_water/shallow_water_domain.py
r7176 r7193 1801 1801 """ 1802 1802 1803 import Numericas num1803 import numpy as num 1804 1804 1805 1805 # Create a temp array to store updated depth dependent friction for wet elements 1806 1806 # EHR this is outwardly inneficient but not obvious how to avoid recreating each call?????? 1807 1807 N=len(domain) 1808 wet_friction = num.zeros(N, num. Float)1808 wet_friction = num.zeros(N, num.float) 1809 1809 wet_friction[:] = default_n0 # Initially assign default_n0 to all array so sure have no zeros values 1810 1810
Note: See TracChangeset
for help on using the changeset viewer.