Changeset 4686 for anuga_core/source/anuga/shallow_water
- Timestamp:
- Aug 28, 2007, 3:04:42 PM (17 years ago)
- Location:
- anuga_core/source/anuga/shallow_water
- Files:
-
- 2 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 -
anuga_core/source/anuga/shallow_water/test_shallow_water_domain.py
r4685 r4686 2291 2291 domain.tight_slope_limiters = 1 # Allow triangle to be flatter (closer to bed) 2292 2292 domain.distribute_to_vertices_and_edges() 2293 assert allclose(L[1], [4.23370103, 16.06529897, 20.001]) 2293 #print L[1] 2294 assert allclose(L[1], [4.23370103, 16.06529897, 20.001]) or\ 2295 allclose(L[1], [4.18944138, 16.10955862, 20.001]) # old limiters 2296 2294 2297 for i in range(len(L)): 2295 2298 assert allclose(volumes[i], sum(L[i])/3)
Note: See TracChangeset
for help on using the changeset viewer.