From b5d50231fb2a9953ce48a1558fd048382d1e7407 Mon Sep 17 00:00:00 2001 From: benSepanski Date: Tue, 7 Jul 2020 11:20:15 -0500 Subject: [PATCH] Removed duplicate function from __init__.py --- meshmode/interop/firedrake/__init__.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/meshmode/interop/firedrake/__init__.py b/meshmode/interop/firedrake/__init__.py index 7a223534..1ad51ae1 100644 --- a/meshmode/interop/firedrake/__init__.py +++ b/meshmode/interop/firedrake/__init__.py @@ -21,7 +21,6 @@ THE SOFTWARE. """ -import numpy as np from meshmode.interop.firedrake.connection import ( FromBdyFiredrakeConnection, FromFiredrakeConnection, ToFiredrakeConnection) from meshmode.interop.firedrake.mesh import import_firedrake_mesh @@ -29,18 +28,3 @@ from meshmode.interop.firedrake.mesh import import_firedrake_mesh __all__ = ["FromBdyFiredrakeConnection", "FromFiredrakeConnection", "ToFiredrakeConnection", "import_firedrake_mesh", ] - - -def _compute_cells_near_bdy(mesh, bdy_id): - """ - Returns an array of the cell ids with >= 1 vertex on the - given bdy_id - """ - cfspace = mesh.coordinates.function_space() - cell_node_list = cfspace.cell_node_list - - boundary_nodes = cfspace.boundary_nodes(bdy_id, 'topological') - # Reduce along each cell: Is a vertex of the cell in boundary nodes? - cell_is_near_bdy = np.any(np.isin(cell_node_list, boundary_nodes), axis=1) - - return np.arange(cell_node_list.shape[0], dtype=np.int32)[cell_is_near_bdy] -- GitLab