Changeset 1923
- Timestamp:
- Oct 14, 2005, 12:11:02 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
inundation/pmesh/test_mesh.py
r1421 r1923 122 122 m = Mesh(userVertices=[v0,v1,v2,v3], userSegments=[s1,s2,s3,s4,s5], regions=[r1] ) 123 123 124 m.generateMesh(" Apz", maxArea = 36 )124 m.generateMesh("QApz", maxArea = 36 ) 125 125 126 126 #m.plotMeshTriangle() … … 135 135 m = Mesh(userVertices=[v0,v1,v2,v3], userSegments=[s1,s2,s3,s4,s5], 136 136 regions=[r1,r2] ) 137 m.generateMesh(" Apz", maxArea = 36 )137 m.generateMesh("QApz", maxArea = 36 ) 138 138 self.failUnless(len(m.meshTriangles) == 6, 139 139 'test_regionalMaxArea 2:generated mesh is wrong!') … … 144 144 m = Mesh(userVertices=[v0,v1,v2,v3], userSegments=[s1,s2,s3,s4,s5], 145 145 regions=[r1,r2] ) 146 m.generateMesh(" Apz", maxArea = 36 )146 m.generateMesh("QApz", maxArea = 36 ) 147 147 #print "len(m.meshTriangles)",len(m.meshTriangles) 148 148 self.failUnless(len(m.meshTriangles) == 8, … … 154 154 m = Mesh(userVertices=[v0,v1,v2,v3], userSegments=[s1,s2,s3,s4,s5], 155 155 regions=[r1,r2] ) 156 m.generateMesh(" Apz", maxArea = 8 )156 m.generateMesh("QApz", maxArea = 8 ) 157 157 self.failUnless(len(m.meshTriangles) == 8, 158 158 'test_regionalMaxArea 4:generated mesh is wrong!') … … 163 163 m = Mesh(userVertices=[v0,v1,v2,v3], userSegments=[s1,s2,s3,s4,s5], 164 164 regions=[r1,r2] ) 165 m.generateMesh(" Apz", maxArea = 36,isRegionalMaxAreas = False )165 m.generateMesh("QApz", maxArea = 36,isRegionalMaxAreas = False ) 166 166 self.failUnless(len(m.meshTriangles) == 2, 167 167 'test_regionalMaxArea 5:generated mesh is wrong!')
Note: See TracChangeset
for help on using the changeset viewer.