From 3664292a0ac630d422ff4fb1948123883a15908d Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Fri, 11 Aug 2023 10:48:06 +0300 Subject: [PATCH] visualization: raise an error if no vis_order is provided --- meshmode/discretization/visualization.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/meshmode/discretization/visualization.py b/meshmode/discretization/visualization.py index 035cdd6f..0597abd0 100644 --- a/meshmode/discretization/visualization.py +++ b/meshmode/discretization/visualization.py @@ -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(