Changeset 6410 for branches/numpy/anuga/abstract_2d_finite_volumes/util.py
- Timestamp:
- Feb 25, 2009, 9:37:22 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy/anuga/abstract_2d_finite_volumes/util.py
r6304 r6410 476 476 if boundary_polygon is not None: 477 477 #removes sts points that do not lie on boundary 478 quantities[name] = num.take(quantities[name], gauge_id, 1) 478 #quantities[name] = num.take(quantities[name], gauge_id, 1) #was# 479 quantities[name] = num.take(quantities[name], gauge_id, axis=1) 479 480 480 481 # Close sww, tms or sts netcdf file … … 1798 1799 # Remove the loners from verts 1799 1800 # Could've used X=compress(less(loners,N),loners) 1800 # verts=num.take(verts,X ) to Remove the loners from verts1801 # verts=num.take(verts,X,axis=0) to Remove the loners from verts 1801 1802 # but I think it would use more memory 1802 1803 new_i = lone_start # point at first loner - 'shuffle down' target
Note: See TracChangeset
for help on using the changeset viewer.