Changeset 5310


Ignore:
Timestamp:
May 12, 2008, 12:40:02 PM (16 years ago)
Author:
herve
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/shallow_water/test_tsunami_okada.py

    r5309 r5310  
    5151            filename = path+sep+'fullokada_SS.txt'
    5252        # initial condition of earthquake for multiple source
    53             x0 = 50000.0
    54             y0 = 25000.0
    55             length = 50.0
    56             width =10.0
    57             strike = 0.0
    58             depth = 10.0
    59             slip = 30.0
     53            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
    6060            dip =15.0
    6161            rake =90.0
     
    139139        Z=tsunami.get_values(interpolation_points=interpolation_points,
    140140                             location='edges')
    141        
    142         assert allclose(stage,tmp,atol=1.e-8)
    143         print stage
     141
     142        stage = -Z # FIXME(Ole): Why the sign flip?
     143                   # Displacement in fortran code is looking downward
    144144        print tmp
    145         print 'c est fini'
    146 
     145        print 'hello',stage
     146        assert allclose(stage,tmp,atol=1.e-3)
     147       
    147148    def test_earthquake_tsunami(self):
    148149        from os import sep, getenv
     
    282283        stage = -Z # FIXME(Ole): Why the sign flip?
    283284                   # Displacement in fortran code is looking downward
    284         #print 'c est fini'
     285        print 'c est fini'
    285286        #print tmp
    286287        #print 'hello',stage   
Note: See TracChangeset for help on using the changeset viewer.