- Timestamp:
- Mar 18, 2009, 3:00:24 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
anuga_core/source/anuga/fit_interpolate/test_search_functions.py
r6544 r6545 53 53 54 54 x = [0.2, 0.7] 55 found, s0, s1, s2, k = search_tree_of_vertices(root, 56 mesh, 57 ensure_numeric(x)) 55 found, s0, s1, s2, k = search_tree_of_vertices(root, x) 58 56 assert k == 1 # Triangle one 59 57 assert found is True … … 80 78 81 79 found, s0, s1, s2, k = search_tree_of_vertices(root, 82 mesh,83 80 ensure_numeric(x)) 84 81 … … 112 109 [10, 3]]: 113 110 114 found, s0, s1, s2, k = search_tree_of_vertices(root, 115 mesh, 116 x) 111 found, s0, s1, s2, k = search_tree_of_vertices(root, x) 117 112 118 113 if k >= 0: … … 145 140 # print x, candidate_vertices 146 141 found, sigma0, sigma1, sigma2, k = \ 147 _search_triangles_of_vertices(mesh, 148 candidate_vertices, 142 _search_triangles_of_vertices(candidate_vertices, 149 143 x) 150 144 … … 167 161 #print x, candidate_vertices 168 162 found, sigma0, sigma1, sigma2, k = \ 169 _search_triangles_of_vertices(mesh, 170 candidate_vertices, 163 _search_triangles_of_vertices(candidate_vertices, 171 164 ensure_numeric(x)) 172 165 if k >= 0: … … 215 208 x = [2.5, 1.5] 216 209 element_found, sigma0, sigma1, sigma2, k = \ 217 search_tree_of_vertices(root, mesh,x)210 search_tree_of_vertices(root, x) 218 211 # One point 219 212 x = [3.00005, 2.999994] 220 213 element_found, sigma0, sigma1, sigma2, k = \ 221 search_tree_of_vertices(root, mesh,x)214 search_tree_of_vertices(root, x) 222 215 assert element_found is True 223 216 assert k == 1
Note: See TracChangeset
for help on using the changeset viewer.