 Timestamp:
 Mar 17, 2009, 4:02:54 PM (14 years ago)
 File:

 1 edited
Legend:
 Unmodified
 Added
 Removed

branches/numpy/anuga/abstract_2d_finite_volumes/test_domain.py
r6517 r6533 542 542 conserved_quantities =\ 543 543 ['stage', 'xmomentum', 'ymomentum']) 544 domain.set_default_order(1)545 544 domain.check_integrity() 546 545 … … 651 650 conserved_quantities =\ 652 651 ['stage', 'xmomentum', 'ymomentum']) 653 domain.set_default_order(1)654 652 domain.check_integrity() 655 653 … … 802 800 [ 11.0, 11.0, 11.0], 803 801 [ 11.0, 11.0, 11.0]]) 804 805 def test_that_mesh_methods_exist(self):806 """test_that_mesh_methods_exist807 808 Test that relavent mesh methods are made available in809 domain through composition810 """811 from mesh_factory import rectangular812 from shallow_water import Domain813 814 # Create basic mesh815 points, vertices, boundary = rectangular(1, 3)816 817 # Create shallow water domain818 domain = Domain(points, vertices, boundary)819 820 821 domain.get_centroid_coordinates()822 domain.get_radii()823 domain.get_areas()824 domain.get_area()825 domain.get_vertex_coordinates()826 domain.get_triangles()827 domain.get_nodes()828 domain.get_number_of_nodes()829 domain.get_normal(0,0)830 domain.get_intersecting_segments([[0.0, 0.0], [0.0, 1.0]])831 domain.get_disconnected_triangles()832 domain.get_boundary_tags()833 domain.get_boundary_polygon()834 #domain.get_number_of_triangles_per_node()835 domain.get_triangles_and_vertices_per_node()836 domain.get_interpolation_object()837 domain.get_tagged_elements()838 domain.get_lone_vertices()839 domain.get_unique_vertices()840 g = domain.get_georeference()841 domain.set_georeference(g)842 domain.build_tagged_elements_dictionary()843 domain.statistics()844 domain.get_extent()845 846 847 848 802 849 803 #
Note: See TracChangeset
for help on using the changeset viewer.