Changeset 2565
- Timestamp:
- Mar 21, 2006, 2:01:54 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pyvolution/test_shallow_water.py
r2526 r2565 2155 2155 # [0.00101913,0.05352143,0.00104852,0.05354394]) 2156 2156 2157 #FIXME: These numbers were from version before 21/3/6 - 2158 #could be recreated by setting maximum_allowed_speed to 0 maybe 2159 #assert allclose(domain.quantities['xmomentum'].vertex_values[:4,0], 2160 # [ 0.00064835, 0.03685719, 0.00085073, 0.03687313]) 2161 2157 2162 assert allclose(domain.quantities['xmomentum'].vertex_values[:4,0], 2158 [ 0.00064835, 0.03685719, 0.00085073, 0.03687313]) 2163 [ 0.00090581, 0.03685719, 0.00088303, 0.03687313]) 2164 2165 2159 2166 2160 2167 #assert allclose(domain.quantities['xmomentum'].vertex_values[:4,0], … … 2270 2277 ##print 2271 2278 if not V: 2272 assert allclose(domain.quantities['xmomentum'].centroid_values[17], 0.0) 2279 #FIXME: These numbers were from version before 21/3/6 - 2280 #could be recreated by setting maximum_allowed_speed to 0 maybe 2281 2282 #assert allclose(domain.quantities['xmomentum'].centroid_values[17], 0.0) 2283 assert allclose(domain.quantities['xmomentum'].centroid_values[17], 0.000286060839592) 2284 2273 2285 else: 2274 2286 assert allclose(domain.quantities['xmomentum'].centroid_values[17], 0.00028606084) … … 2282 2294 #assert allclose(domain.quantities['xmomentum'].centroid_values, XX) 2283 2295 2284 assert allclose(domain.quantities['xmomentum'].centroid_values[17], 2285 0.0) 2296 #assert allclose(domain.quantities['xmomentum'].centroid_values[17], 2297 # 0.0) 2298 assert allclose(domain.quantities['xmomentum'].centroid_values[17], 0.000286060839592) 2286 2299 2287 2300 … … 2295 2308 2296 2309 assert allclose(domain.quantities['xmomentum'].vertex_values[:4,0], 2297 [0.000 64835,0.03685719,0.00085073,0.03687313])2310 [0.00090581,0.03685719,0.00088303,0.03687313]) 2298 2311 2299 2312
Note: See TracChangeset
for help on using the changeset viewer.