Changeset 6174 for anuga_core/source/anuga/abstract_2d_finite_volumes/generic_boundary_conditions.py
- Timestamp:
- Jan 15, 2009, 11:03:42 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/abstract_2d_finite_volumes/generic_boundary_conditions.py
r6173 r6174 200 200 201 201 # Compute midpoints 202 if edge_id == 0: m = num.array([(x1 + x2)/2, (y1 + y2)/2] )203 if edge_id == 1: m = num.array([(x0 + x2)/2, (y0 + y2)/2] )204 if edge_id == 2: m = num.array([(x1 + x0)/2, (y1 + y0)/2] )202 if edge_id == 0: m = num.array([(x1 + x2)/2, (y1 + y2)/2], num.Float) 203 if edge_id == 1: m = num.array([(x0 + x2)/2, (y0 + y2)/2], num.Float) 204 if edge_id == 2: m = num.array([(x1 + x0)/2, (y1 + y0)/2], num.Float) 205 205 206 206 # Convert to absolute UTM coordinates
Note: See TracChangeset
for help on using the changeset viewer.