Changeset 8769
- Timestamp:
- Mar 19, 2013, 1:17:49 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/anuga_core/source/anuga_parallel/pymetis/test_metis.py
r8011 r8769 75 75 assert allclose(epart, epart_expected) 76 76 assert allclose(npart, npart_expected) 77 78 79 80 def test_Hexmesh3(self): 81 # Hexagonal mesh 82 # 83 # 1---2---7 84 # /5\0/1\6/7\ 85 # 6---0---3---8 86 # \4/3\2/9\8/ 87 # 5---4---9 88 # 89 # Divided 2 ways 90 # Calling order is: elements, verticies, edge list 91 # element type, number parts 92 edgecut, epart, npart = metis.partMeshNodal(10, 10,\ 93 [0, 2, 1,\ 94 0, 3, 2,\ 95 0, 4, 3,\ 96 0, 5, 4,\ 97 0, 6, 5,\ 98 0, 1, 6,\ 99 3, 2, 7,\ 100 3, 7, 8,\ 101 3, 8, 9,\ 102 3, 9, 4],\ 103 1,\ 104 3,) 105 #print edgecut 106 #print epart 107 #print npart 108 epart_expected = array([0, 0, 0, 1, 2, 2, 2, 2, 1, 1], 'i') 109 npart_expected = array([0, 2, 0, 2, 1, 1, 2, 2, 0, 1], 'i') 110 self.assert_(edgecut == 14) 111 assert allclose(epart, epart_expected) 112 assert allclose(npart, npart_expected) 77 113 78 114
Note: See TracChangeset
for help on using the changeset viewer.