- Timestamp:
- Apr 3, 2009, 12:11:24 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/test_data_manager.py
r6595 r6711 251 251 252 252 # Get the variables 253 #range = fid.variables['stage_range'][:]253 range = fid.variables['stage_range'][:] 254 254 #print range 255 #assert num.allclose(range,[-0.93519, 0.15]) or\256 #num.allclose(range,[-0.9352743, 0.15]) or\257 #num.allclose(range,[-0.93522203, 0.15000001]) # Old slope limiters258 259 #range = fid.variables['xmomentum_range'][:]255 assert num.allclose(range,[-0.93519, 0.15]) or\ 256 num.allclose(range,[-0.9352743, 0.15]) or\ 257 num.allclose(range,[-0.93522203, 0.15000001]) # Old slope limiters 258 259 range = fid.variables['xmomentum_range'][:] 260 260 ##print range 261 #assert num.allclose(range,[0,0.4695096]) or \262 #num.allclose(range,[0,0.47790655]) or\263 #num.allclose(range,[0,0.46941957]) or\264 #num.allclose(range,[0,0.47769409])265 266 267 #range = fid.variables['ymomentum_range'][:]261 assert num.allclose(range,[0,0.4695096]) or \ 262 num.allclose(range,[0,0.47790655]) or\ 263 num.allclose(range,[0,0.46941957]) or\ 264 num.allclose(range,[0,0.47769409]) 265 266 267 range = fid.variables['ymomentum_range'][:] 268 268 ##print range 269 #assert num.allclose(range,[0,0.02174380]) or\270 #num.allclose(range,[0,0.02174439]) or\271 #num.allclose(range,[0,0.02283983]) or\272 #num.allclose(range,[0,0.0217342]) or\273 #num.allclose(range,[0,0.0227564]) # Old slope limiters269 assert num.allclose(range,[0,0.02174380]) or\ 270 num.allclose(range,[0,0.02174439]) or\ 271 num.allclose(range,[0,0.02283983]) or\ 272 num.allclose(range,[0,0.0217342]) or\ 273 num.allclose(range,[0,0.0227564]) # Old slope limiters 274 274 275 275 fid.close()
Note: See TracChangeset
for help on using the changeset viewer.