Ignore:
Timestamp:
Oct 4, 2006, 11:00:56 AM (18 years ago)
Author:
ole
Message:

Added functionality for getting arbitrary interpolated values in Quantity as well as calculating inundation height and location. This work was done at SUT during the last week of September 2006.

File:
1 edited

Legend:

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

    r3560 r3689  
    1818    def tearDown(self):
    1919        pass
     20
     21
     22    def test_get_vertex_coordinates(self):
     23        from mesh_factory import rectangular
     24        from Numeric import zeros, Float
     25
     26        #Create basic mesh
     27        points, vertices, boundary = rectangular(1, 3)
     28        domain = General_mesh(points, vertices, boundary)
     29
     30        assert allclose(domain.get_vertex_coordinates(unique=True), domain.coordinates)
     31
     32        #assert allclose(domain.get_vertex_coordinates(), ...TODO
     33        #assert allclose(domain.get_vertex_coordinates(absolute=True), ...TODO
     34       
     35       
    2036
    2137    def test_get_vertex_values(self):
     
    6783        assert unique_vertices == [0,2,4,5,6,7]
    6884
     85
     86       
     87
    6988#-------------------------------------------------------------
    7089if __name__ == "__main__":
Note: See TracChangeset for help on using the changeset viewer.