From c8a481e701b993628c39819e2e7b336b729fc6ce Mon Sep 17 00:00:00 2001 From: Shivam Gupta <sgupta72@illinois.edu> Date: Tue, 21 Apr 2015 00:46:11 -0500 Subject: [PATCH] fixed dimension issue, mesh.dim isn't what I thought it was --- test/test_meshmode.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_meshmode.py b/test/test_meshmode.py index 6280707a..d14fd94e 100644 --- a/test/test_meshmode.py +++ b/test/test_meshmode.py @@ -401,7 +401,7 @@ def test_lookup_tree(do_plot=False): #construct vertex vertex_index def get_vertex(mesh, vertex_index): - vertex = np.empty([mesh.dim]) + vertex = np.empty([len(mesh.vertices)]) for i_cur_dim, cur_dim_coords in enumerate(mesh.vertices): vertex[i_cur_dim] = cur_dim_coords[vertex_index] return vertex @@ -443,7 +443,7 @@ def test_refiner_connectivity(mesh): last_bounding_vertex = get_vertex(mesh, \ bounding_grp.vertex_indices[bounding_iel][nvertices_per_element-1]) - transformation = np.empty([mesh.dim, nvertices_per_element-1]) + transformation = np.empty([len(mesh.vertices), nvertices_per_element-1]) vertex_transformed = vertex - last_bounding_vertex for ibounding_vertex_index, bounding_vertex_index in \ enumerate(bounding_grp.vertex_indices[bounding_iel][:nvertices_per_element-1]): -- GitLab