Changeset 4393


Ignore:
Timestamp:
Apr 18, 2007, 10:42:33 AM (18 years ago)
Author:
nick
Message:

add test_track_speeds

File:
1 edited

Legend:

Unmodified
Added
Removed
  • anuga_core/source/anuga/abstract_2d_finite_volumes/test_domain.py

    r4171 r4393  
    491491                        'set region failed')
    492492
     493
     494    def test_track_speeds(self):
     495        """
     496        get values based on triangle lists.
     497        """
     498        from mesh_factory import rectangular
     499        from shallow_water import Domain
     500        from Numeric import zeros, Float
     501
     502        #Create basic mesh
     503        points, vertices, boundary = rectangular(1, 3)
     504
     505        #Create shallow water domain
     506        domain = Domain(points, vertices, boundary)
     507        domain.write_time(track_speeds=True)
    493508
    494509
     
    592607#-------------------------------------------------------------
    593608if __name__ == "__main__":
    594     suite = unittest.makeSuite(Test_Domain,'test')
     609#    suite = unittest.makeSuite(Test_Domain,'test')
     610    suite = unittest.makeSuite(Test_Domain,'test_track_speeds')
    595611    runner = unittest.TextTestRunner()
    596612    runner.run(suite)
Note: See TracChangeset for help on using the changeset viewer.