Changeset 2565


Ignore:
Timestamp:
Mar 21, 2006, 2:01:54 PM (18 years ago)
Author:
ole
Message:

Fixed unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • inundation/pyvolution/test_shallow_water.py

    r2526 r2565  
    21552155        #                [0.00101913,0.05352143,0.00104852,0.05354394])
    21562156
     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       
    21572162        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                       
    21592166
    21602167        #assert allclose(domain.quantities['xmomentum'].vertex_values[:4,0],
     
    22702277            ##print
    22712278            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
    22732285            else:
    22742286                assert allclose(domain.quantities['xmomentum'].centroid_values[17], 0.00028606084)
     
    22822294            #assert allclose(domain.quantities['xmomentum'].centroid_values, XX)
    22832295
    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)                                                 
    22862299
    22872300
     
    22952308
    22962309            assert allclose(domain.quantities['xmomentum'].vertex_values[:4,0],
    2297                             [0.00064835,0.03685719,0.00085073,0.03687313])
     2310                            [0.00090581,0.03685719,0.00088303,0.03687313])
    22982311
    22992312
Note: See TracChangeset for help on using the changeset viewer.