 Timestamp:
 Sep 12, 2006, 2:54:29 PM (17 years ago)
 Location:
 anuga_core/source/anuga/abstract_2d_finite_volumes
 Files:

 1 edited
 1 moved
Legend:
 Unmodified
 Added
 Removed

anuga_core/source/anuga/abstract_2d_finite_volumes/test_general_mesh.py
r3514 r3560 1 1 #!/usr/bin/env python 2 3 #FIXME (Ole): Maxe this test independent of anything that inherits from General_mesh (namely shallow_water)4 2 5 3 … … 8 6 9 7 10 from quantity import *11 8 from anuga.config import epsilon 12 9 from Numeric import allclose, array, ones, Float 10 from general_mesh import General_mesh 11 13 12 14 13 … … 21 20 22 21 def test_get_vertex_values(self): 23 """ 24 get connectivity based on triangle lists. 22 """Get connectivity based on triangle lists. 25 23 """ 26 24 from mesh_factory import rectangular 27 from shallow_water import Domain28 25 from Numeric import zeros, Float 29 26 30 27 #Create basic mesh 31 28 points, vertices, boundary = rectangular(1, 3) 32 domain = Domain(points, vertices, boundary)29 domain = General_mesh(points, vertices, boundary) 33 30 34 31 value = [7] … … 44 41 #Create basic mesh 45 42 points, vertices, boundary = rectangular(1, 3) 46 domain = Domain(points, vertices, boundary)43 domain = General_mesh(points, vertices, boundary) 47 44 48 45 assert domain.get_area() == 1.0 … … 59 56 #Create basic mesh 60 57 points, vertices, boundary = rectangular(1, 3) 61 domain = Domain(points, vertices, boundary)58 domain = General_mesh(points, vertices, boundary) 62 59 63 60 assert domain.get_unique_vertices() == [0,1,2,3,4,5,6,7]
Note: See TracChangeset
for help on using the changeset viewer.