From 7b36d7dddbb8b077acc684637c68fdc57ed83d1e Mon Sep 17 00:00:00 2001 From: Alexandru Fikl Date: Thu, 23 Jul 2020 11:16:49 -0500 Subject: [PATCH] add a docstring to write_high_order_vtk_file --- meshmode/discretization/visualization.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/meshmode/discretization/visualization.py b/meshmode/discretization/visualization.py index 4a7c93f0..1ef1d121 100644 --- a/meshmode/discretization/visualization.py +++ b/meshmode/discretization/visualization.py @@ -339,6 +339,7 @@ class Visualizer(object): .. automethod:: show_scalar_in_mayavi .. automethod:: show_scalar_in_matplotlib_3d .. automethod:: write_vtk_file + .. automethod:: write_high_order_vtk_file """ def __init__(self, connection, @@ -423,6 +424,10 @@ class Visualizer(object): def write_high_order_vtk_file(self, file_name, names_and_fields, compressor=None, real_only=False, overwrite=False): + """Writes arbitrary order Lagrange VTK elements. These elements are + described in `this blog post `_ + and are available in VTK 8.1 and newer. + """ # noqa if not self.is_equidistant: raise RuntimeError("cannot visualize high-order Lagrange elements. " "call 'make_visualizer' with 'force_equidistant=True'.") -- GitLab