Changeset 5283
- Timestamp:
- May 6, 2008, 4:33:10 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/test_tsunami_okada.py
r5281 r5283 127 127 # get vertical displacement at each point of the domain respecting 128 128 # original script's order 129 interpolation_points=[] 129 130 k=0.0 130 131 for i in range(0,6): … … 133 134 Yt=p 134 135 Xt=k 135 Z=tsunami.get_values(interpolation_points=[[Xt,Yt]] 136 ,location='edges') 137 stage.append(-Z[0]) 136 interpolation_points.append([Xt, Yt]) 137 138 138 k=k+4000 139 Z=tsunami.get_values(interpolation_points=interpolation_points, 140 location='edges') 139 141 140 142 assert allclose(stage,tmp,atol=1.e-8) … … 249 251 tsunami = Quantity(domain) 250 252 tsunami.set_values(Ts) 251 <<<<<<< .mine252 253 interpolation_points=[] 253 =======254 254 255 255 #k=0.0 … … 268 268 # Here's a faster way - try that in the first test 269 269 interpolation_points=[] 270 >>>>>>> .r5278271 270 k=0.0 272 271 for i in range(0,6): … … 278 277 279 278 k=k+4000 280 281 <<<<<<< .mine282 279 Z=tsunami.get_values(interpolation_points=interpolation_points, 283 280 location='edges') … … 289 286 #print 'hello',stage 290 287 assert allclose(stage,tmp,atol=1.e-3) 291 =======292 Z=tsunami.get_values(interpolation_points=interpolation_points,293 location='edges')294 >>>>>>> .r5278295 296 stage = -Z # FIXME(Ole): Why the sign flip?297 298 assert allclose(stage, tmp, atol=1.e-3)299 288 300 289 #-------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.