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

Add number visualization to test_mesh_multiple_groups

parent 5d6dd963
No related branches found
No related tags found
No related merge requests found
...@@ -1308,6 +1308,13 @@ def test_mesh_multiple_groups(ctx_factory, ambient_dim, visualize=False): ...@@ -1308,6 +1308,13 @@ def test_mesh_multiple_groups(ctx_factory, ambient_dim, visualize=False):
assert mesh.facial_adjacency_groups assert mesh.facial_adjacency_groups
assert mesh.nodal_adjacency assert mesh.nodal_adjacency
if visualize:
from meshmode.mesh.visualization import draw_2d_mesh
draw_2d_mesh(mesh, draw_element_numbers=True, draw_face_numbers=True,
set_bounding_box=True)
import matplotlib.pyplot as plt
plt.show()
from meshmode.discretization import Discretization from meshmode.discretization import Discretization
from meshmode.discretization.poly_element import \ from meshmode.discretization.poly_element import \
PolynomialWarpAndBlendGroupFactory as GroupFactory PolynomialWarpAndBlendGroupFactory as GroupFactory
......
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