Skip to content
Snippets Groups Projects
Commit 02ac1f80 authored by Andreas Klöckner's avatar Andreas Klöckner
Browse files

Make draw_2d_mesh work for TensorProductElementGroup

parent 4eea0ec1
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,11 @@ def draw_2d_mesh(mesh, draw_vertex_numbers=True, draw_element_numbers=True,
for iel, el in enumerate(grp.vertex_indices):
elverts = mesh.vertices[:, el]
from meshmode.mesh import TensorProductElementGroup
if isinstance(grp, TensorProductElementGroup) and grp.dim == 2:
elverts = elverts[:,
np.array([0, 1, 3, 2])]
pathdata = [
(Path.MOVETO, (elverts[0, 0], elverts[1, 0])),
]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment