From 7d1b9bc2caa213ccfd0de3bf5faf59b4fda93ea4 Mon Sep 17 00:00:00 2001 From: Umberto Zerbinati Date: Wed, 6 Nov 2024 15:19:20 +0000 Subject: [PATCH] Fix typing annotation of output type of GeometricModel in utils/fenicsx.py (#60) Co-authored-by: Francesco Ballarin --- ngsPETSc/utils/fenicsx.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ngsPETSc/utils/fenicsx.py b/ngsPETSc/utils/fenicsx.py index 89ed326..e5d5b4d 100644 --- a/ngsPETSc/utils/fenicsx.py +++ b/ngsPETSc/utils/fenicsx.py @@ -30,8 +30,7 @@ def model_to_mesh(self, hmax: float, gdim: int = 2, [_MPI.Comm, int, int, dolfinx.cpp.graph.AdjacencyList_int32], dolfinx.cpp.graph.AdjacencyList_int32] = dolfinx.mesh.create_cell_partitioner(dolfinx.mesh.GhostMode.none), - transform: typing.Any = None, routine: typing.Any = None) -> typing.Tuple[dolfinx.mesh.Mesh, - dolfinx.cpp.mesh.MeshTags_int32,dolfinx.cpp.mesh.MeshTags_int32]: + transform: typing.Any = None, routine: typing.Any = None) -> dolfinx.mesh.Mesh: """Given a NetGen model, take all physical entities of the highest topological dimension and create the corresponding DOLFINx mesh.