- Timestamp:
- Aug 28, 2007, 3:04:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/test_data_manager.py
r4677 r4686 246 246 # Get the variables 247 247 range = fid.variables['stage_range'][:] 248 assert allclose(range,[-0.93519, 0.15]) 248 assert allclose(range,[-0.93519, 0.15]) or\ 249 allclose(range,[-0.9352743, 0.15]) # Old slope limiters 249 250 range = fid.variables['xmomentum_range'][:] 251 250 252 #assert allclose(range,[0,0.46950444]) 251 assert allclose(range,[0,0.4695096]) 253 assert allclose(range,[0,0.4695096]) or\ 254 allclose(range,[0,0.47790655]) # Old slope limiters 252 255 range = fid.variables['ymomentum_range'][:] 256 253 257 #assert allclose(range,[0,0.02174380]) 254 assert allclose(range,[0,0.02174439]) 258 assert allclose(range,[0,0.02174439]) or\ 259 allclose(range,[0,0.02283983]) # Old slope limiters 255 260 256 261 fid.close() … … 7106 7111 location = get_maximum_inundation_location(swwfile) 7107 7112 #print runup, location 7108 assert allclose(runup, 11) 7109 assert allclose(location[0], 15) 7113 assert allclose(runup, 11) or allclose(runup, 12) # old limiters 7114 assert allclose(location[0], 15) or allclose(location[0], 10) 7110 7115 7111 7116 # Check final runup … … 7147 7152 runup = get_maximum_inundation_elevation(swwfile) 7148 7153 location = get_maximum_inundation_location(swwfile) 7149 assert allclose(runup, 11) 7150 assert allclose(location[0], 15+E) 7154 assert allclose(runup, 11) or allclose(runup, 12) # old limiters 7155 assert allclose(location[0], 15+E) or allclose(location[0], 10+E) 7151 7156 7152 7157 # Check final runup
Note: See TracChangeset
for help on using the changeset viewer.