Changeset 5310
- Timestamp:
- May 12, 2008, 12:40:02 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/shallow_water/test_tsunami_okada.py
r5309 r5310 51 51 filename = path+sep+'fullokada_SS.txt' 52 52 # initial condition of earthquake for multiple source 53 x0 = 50000.054 y0 = 25000.055 length = 50.056 width = 10.057 strike = 0.0 58 depth = 1 0.059 slip = 30.053 x0 = 7000.0 54 y0 = 10000.0 55 length = 10.0 56 width =6.0 57 strike = 0.0 58 depth = 15.0 59 slip = 10.0 60 60 dip =15.0 61 61 rake =90.0 … … 139 139 Z=tsunami.get_values(interpolation_points=interpolation_points, 140 140 location='edges') 141 142 assert allclose(stage,tmp,atol=1.e-8)143 print stage141 142 stage = -Z # FIXME(Ole): Why the sign flip? 143 # Displacement in fortran code is looking downward 144 144 print tmp 145 print 'c est fini' 146 145 print 'hello',stage 146 assert allclose(stage,tmp,atol=1.e-3) 147 147 148 def test_earthquake_tsunami(self): 148 149 from os import sep, getenv … … 282 283 stage = -Z # FIXME(Ole): Why the sign flip? 283 284 # Displacement in fortran code is looking downward 284 #print 'c est fini'285 print 'c est fini' 285 286 #print tmp 286 287 #print 'hello',stage
Note: See TracChangeset
for help on using the changeset viewer.