Skip to content

Commit

Permalink
visualization: raise an error if no vis_order is provided
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl committed Aug 11, 2023
1 parent 6e8a963 commit c7e55f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions meshmode/discretization/visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -1307,6 +1307,9 @@ def make_visualizer(actx, discr, vis_order=None,
stacklevel=2)

vis_discr = discr
else:
if vis_order is None:
raise ValueError("A 'vis_order' must be provided for interpolation.")

from meshmode.discretization.connection import make_same_mesh_connection
return Visualizer(
Expand Down

0 comments on commit c7e55f4

Please sign in to comment.