Skip to content
Snippets Groups Projects
Commit 22beda11 authored by Alexandru Fikl's avatar Alexandru Fikl
Browse files

remove forgotten split_mesh from tests

parent f250492a
No related branches found
No related tags found
No related merge requests found
......@@ -572,7 +572,6 @@ def merge_disjoint_meshes(meshes, skip_tests=False, single_group=False):
# {{{ split meshes
def split_mesh_groups(mesh, element_flags, return_subgroup_mapping=False):
"""Split all the groups in *mesh* according to the values of
*element_flags*. The element flags are expected to be integers
......
......@@ -1272,27 +1272,6 @@ def test_is_affine_group_check(mesh_name):
assert all(grp.is_affine for grp in mesh.groups) == is_affine
def split_mesh(mesh, axis, cutoff):
groups = []
for grp in mesh.groups:
mask = np.any(mesh.vertices[axis, grp.vertex_indices] < cutoff, axis=1)
groups.append(grp.copy(
vertex_indices=grp.vertex_indices[mask, :].copy(),
nodes=grp.nodes[:, mask, :].copy())
)
groups.append(grp.copy(
vertex_indices=grp.vertex_indices[~mask, :].copy(),
nodes=grp.nodes[:, ~mask, :].copy())
)
from meshmode.mesh import Mesh
return Mesh(
vertices=mesh.vertices,
groups=groups,
is_conforming=mesh.is_conforming)
@pytest.mark.parametrize("ambient_dim", [1, 2, 3])
def test_mesh_multiple_groups(ctx_factory, ambient_dim, visualize=False):
ctx = ctx_factory()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment