Changeset 6428 for branches/numpy/anuga/shallow_water/test_smf.py
- Timestamp:
- Feb 27, 2009, 11:54:09 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/numpy/anuga/shallow_water/test_smf.py
r6410 r6428 52 52 slide = slide_tsunami(length=len, depth=dep, slope=th, x0=x0, \ 53 53 width = wid, thickness=thk, kappa=kappa, kappad=kappad, \ 54 54 verbose=False) 55 55 56 56 assert num.allclose(slide.a3D, 0.07775819) … … 111 111 slide = slide_tsunami(length, dep, th, x0, y0, \ 112 112 wid, thk, kappa, kappad, \ 113 113 domain=domain,verbose=False) 114 114 115 115 domain.set_quantity('stage', slide) 116 117 116 stage = domain.get_quantity('stage') 117 w = stage.get_values() 118 118 119 ## 119 ## check = [[-0.0 -0.0 -0.0], 120 120 ## [-.189709745 -517.877716 -0.0], 121 121 ## [-0.0 -0.0 -2.7695931e-08], … … 126 126 ## [-0.0 -0.0 -0.0]] 127 127 128 assert num.allclose( min(min(w)), -517.877771593)129 assert num.allclose( max(max(w)), 0.0)128 assert num.allclose(num.min(w), -517.877771593) 129 assert num.allclose(num.max(w), 0.0) 130 130 assert num.allclose(slide.a3D, 518.38797486) 131 131
Note: See TracChangeset
for help on using the changeset viewer.