Changeset 2154
- Timestamp:
- Dec 19, 2005, 3:27:46 PM (19 years ago)
- Location:
- inundation/pyvolution
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/generic_boundary_conditions.py
r1900 r2154 202 202 203 203 204 #Record ordering #FIXME: should this happen in domain.py? 204 #Make ordering unique #FIXME: should this happen in domain.py? 205 boundary_keys.sort() 206 207 208 #Record ordering #FIXME: should this also happen in domain.py? 205 209 self.boundary_indices = {} 206 207 210 for i, (vol_id, edge_id) in enumerate(boundary_keys): 208 211 -
inundation/pyvolution/test_generic_boundary_conditions.py
r1835 r2154 164 164 165 165 166 167 166 168 #Check that midpoint coordinates at boundary are correctly computed 167 169 assert allclose( F.midpoint_coordinates, 168 [[0.0, 3.0], [1.0, 3.0], [0.0, 1.0],169 [1.0, 0.0], [3.0, 0.0], [3.0, 1.0]])170 [[1.0, 0.0], [0.0, 1.0], [3.0, 0.0], 171 [3.0, 1.0], [1.0, 3.0], [0.0, 3.0]]) 170 172 171 173 #assert allclose(F.midpoint_coordinates[(3,2)], [0.0, 3.0])
Note: See TracChangeset
for help on using the changeset viewer.