Changeset 6309
- Timestamp:
- Feb 11, 2009, 10:59:51 AM (16 years ago)
- Location:
- anuga_core/source/anuga/abstract_2d_finite_volumes
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/abstract_2d_finite_volumes/domain.py
r6246 r6309 319 319 return self.mesh.get_boundary_polygon(*args, **kwargs) 320 320 321 # FIXME(Ole): This doesn't seem to be required 321 322 def get_number_of_triangles_per_node(self, *args, **kwargs): 322 323 return self.mesh.get_number_of_triangles_per_node(*args, **kwargs) … … 348 349 def statistics(self, *args, **kwargs): 349 350 return self.mesh.statistics(*args, **kwargs) 351 352 def get_extent(self, *args, **kwargs): 353 return self.mesh.get_extent(*args, **kwargs) 350 354 351 355 ## -
anuga_core/source/anuga/abstract_2d_finite_volumes/test_domain.py
r6258 r6309 793 793 [ 11.0, 11.0, 11.0], 794 794 [ 11.0, 11.0, 11.0]]) 795 796 def test_that_mesh_methods_exist(self): 797 """test_that_mesh_methods_exist 798 799 Test that relavent mesh methods are made available in 800 domain through composition 801 """ 802 from mesh_factory import rectangular 803 from shallow_water import Domain 804 805 # Create basic mesh 806 points, vertices, boundary = rectangular(1, 3) 807 808 # Create shallow water domain 809 domain = Domain(points, vertices, boundary) 810 811 812 domain.get_centroid_coordinates() 813 domain.get_radii() 814 domain.get_areas() 815 domain.get_area() 816 domain.get_vertex_coordinates() 817 domain.get_triangles() 818 domain.get_nodes() 819 domain.get_number_of_nodes() 820 domain.get_normal(0,0) 821 domain.get_intersecting_segments([[0.0, 0.0], [0.0, 1.0]]) 822 domain.get_disconnected_triangles() 823 domain.get_boundary_tags() 824 domain.get_boundary_polygon() 825 #domain.get_number_of_triangles_per_node() 826 domain.get_triangles_and_vertices_per_node() 827 domain.get_interpolation_object() 828 domain.get_tagged_elements() 829 domain.get_lone_vertices() 830 domain.get_unique_vertices() 831 g = domain.get_georeference() 832 domain.set_georeference(g) 833 domain.build_tagged_elements_dictionary() 834 domain.statistics() 835 domain.get_extent() 836 837 838 795 839 796 840 #-------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.