From ae215b09e4d16fb26ed7b231b580c2b692add704 Mon Sep 17 00:00:00 2001 From: Tetsuo Koyama Date: Tue, 26 Dec 2023 22:59:46 +0900 Subject: [PATCH] Fix error --- src/pvgmsh/__init__.py | 6 ++++++ src/pvgmsh/__main__.py | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pvgmsh/__init__.py b/src/pvgmsh/__init__.py index 3f1d98b7..c5eaae7c 100644 --- a/src/pvgmsh/__init__.py +++ b/src/pvgmsh/__init__.py @@ -140,6 +140,12 @@ def delaunay_3d(): >>> _ = gmsh.model.geo.add_volume([1], 1) >>> gmsh.model.geo.synchronize() >>> gmsh.model.mesh.generate(3) + >>> element_types, element_tags, node_tags = gmsh.model.mesh.getElements() + >>> element_types + array([ 1, 2, 4, 15], dtype=int32) + >>> element_tags + + >>> node_tags >>> fp = tempfile.NamedTemporaryFile(mode="w+", suffix=".msh") >>> gmsh.write(fp.name) diff --git a/src/pvgmsh/__main__.py b/src/pvgmsh/__main__.py index 8b137891..9fbbf562 100644 --- a/src/pvgmsh/__main__.py +++ b/src/pvgmsh/__main__.py @@ -1 +1 @@ - +"""The pyvista-gmsh main module for PyVista accessors for Gmsh to generate 3D finite element mesh."""