Ignore:
Timestamp:
Jun 11, 2010, 7:45:03 PM (12 years ago)
Author:
steve
Message:

test_sww_vel_domain is nowworking with numpy

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_work/development/pipeflow/test_sww_domain.py

    r7823 r7824  
    4040        domain.distribute_to_vertices_and_edges()
    4141        domain.compute_fluxes()
    42 
    43         print domain.quantities['stage'].explicit_update
    44         print domain.quantities['xmomentum'].explicit_update
    45 
    46         print stage_ud
    47         print xmom_ud
    4842
    4943        assert numpy.allclose( domain.quantities['stage'].explicit_update, stage_ud )
     
    125119
    126120        for t in domain.evolve(yieldstep=yieldstep, finaltime=finaltime):
    127             #pass
     121            pass
    128122       
    129             print domain.quantities['stage'].vertex_values
    130             print domain.quantities['elevation'].vertex_values
    131             print domain.quantities['xmomentum'].vertex_values
    132          
    133        
    134             print domain.quantities['stage'].centroid_values 
    135             print domain.quantities['elevation'].centroid_values
    136             print domain.quantities['xmomentum'].centroid_values   
    137123
    138124        assert numpy.allclose( 10.0*numpy.ones(10), domain.quantities['stage'].centroid_values )
     
    161147            pass
    162148       
    163         assert numpy.allclose( 10.0*ones(10), domain.quantities['stage'].centroid_values )
    164         assert numpy.allclose( zeros(10), domain.quantities['xmomentum'].centroid_values )
     149        assert numpy.allclose( 10.0*numpy.ones(10), domain.quantities['stage'].centroid_values )
     150        assert numpy.allclose( numpy.zeros(10), domain.quantities['xmomentum'].centroid_values )
    165151
    166152    def test_evolve_second_order_space_time(self):
     
    186172            pass
    187173       
    188         assert numpy.allclose( 10.0*ones(10), domain.quantities['stage'].centroid_values )
    189         assert numpy.allclose( zeros(10), domain.quantities['xmomentum'].centroid_values )
     174        assert numpy.allclose( 10.0*numpy.ones(10), domain.quantities['stage'].centroid_values )
     175        assert numpy.allclose( numpy.zeros(10), domain.quantities['xmomentum'].centroid_values )
    190176
    191177
Note: See TracChangeset for help on using the changeset viewer.