Ignore:
Timestamp:
Jun 21, 2007, 3:23:11 PM (18 years ago)
Author:
ole
Message:

Computed maximal runup height and location in automated okushiri validation and
added one simple assertion. More could be done here.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_validation/automated_validation_tests/okushiri_tank_validation/compare_timeseries_with_measures.py

    r4529 r4555  
    141141    #                            rtol=rtol, atol=atol)
    142142    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
    144145   
    145146
     
    215216
    216217
     218# Check max runup
     219
     220from anuga.shallow_water.data_manager import get_maximum_inundation_elevation
     221from anuga.shallow_water.data_manager import get_maximum_inundation_location
     222from anuga.utilities.polygon import is_inside_polygon
     223
     224q = get_maximum_inundation_elevation(sww_filename)
     225loc = get_maximum_inundation_location(sww_filename)
     226
     227
     228print 'Max runup elevation: ', q
     229print 'Max runup location:  ', loc
     230
     231
     232from create_okushiri import gulleys
     233assert 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.