- Timestamp:
- Nov 27, 2009, 9:31:34 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water_balanced/test_swb_boundary_condition.py
r7559 r7573 65 65 domain.set_boundary({'First': D, 'Second': T, 'Third': R}) 66 66 67 domain.set_centroid_transmissive_bc(False) 67 68 domain.update_boundary() 68 69 … … 74 75 # Dirichlet 75 76 assert domain.quantities['stage'].boundary_values[1] == 5. 77 78 76 79 # Transmissive (4.5) 77 80 assert (domain.quantities['stage'].boundary_values[2] == … … 382 385 383 386 assert num.allclose(num.take(cv1, (0,8,16), axis=0), 384 num.take(cv2, (0,3,8), axis=0),atol=1.0e- 4) # Diag387 num.take(cv2, (0,3,8), axis=0),atol=1.0e-2) # Diag 385 388 assert num.allclose(num.take(cv1, (0,6,12), axis=0), 386 num.take(cv2, (0,1,4), axis=0),atol=1.0e- 4) # Bottom389 num.take(cv2, (0,1,4), axis=0),atol=1.0e-2) # Bottom 387 390 assert num.allclose(num.take(cv1, (12,14,16), axis=0), 388 num.take(cv2, (4,6,8), axis=0),atol=1.0e- 4) # RHS391 num.take(cv2, (4,6,8), axis=0),atol=1.0e-2) # RHS 389 392 390 393 # Cleanup
Note: See TracChangeset
for help on using the changeset viewer.