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 authored and inducer committed Aug 12, 2023
1 parent 2a07484 commit 3664292
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 3664292

Please sign in to comment.