Changeset 4555 for anuga_validation/automated_validation_tests/okushiri_tank_validation/compare_timeseries_with_measures.py
- Timestamp:
- Jun 21, 2007, 3:23:11 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_validation/automated_validation_tests/okushiri_tank_validation/compare_timeseries_with_measures.py
r4529 r4555 141 141 # rtol=rtol, atol=atol) 142 142 if plotting is False: 143 assert allclose(reference_value, computed_value, rtol=rtol, atol=atol), msg 143 assert allclose(reference_value, computed_value, 144 rtol=rtol, atol=atol), msg 144 145 145 146 … … 215 216 216 217 218 # Check max runup 219 220 from anuga.shallow_water.data_manager import get_maximum_inundation_elevation 221 from anuga.shallow_water.data_manager import get_maximum_inundation_location 222 from anuga.utilities.polygon import is_inside_polygon 223 224 q = get_maximum_inundation_elevation(sww_filename) 225 loc = get_maximum_inundation_location(sww_filename) 226 227 228 print 'Max runup elevation: ', q 229 print 'Max runup location: ', loc 230 231 232 from create_okushiri import gulleys 233 assert is_inside_polygon(loc, gulleys) 234 235 # FIXME more asserts here 236 237 238 239 #msg = 'We got %f, should have been %f' %(q, q_max) 240 #assert allclose(q, q_max, rtol=1.0/N), msg 241 ##print 'loc', loc, q 242 #assert allclose(-loc[0]/2, q) # From topography formula 243
Note: See TracChangeset
for help on using the changeset viewer.