From f250492a240b243f885bdade1ace9f117bcf878c Mon Sep 17 00:00:00 2001 From: Alexandru Fikl <alexfikl@gmail.com> Date: Tue, 2 Jun 2020 18:44:43 -0500 Subject: [PATCH] fix some typos --- meshmode/mesh/processing.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meshmode/mesh/processing.py b/meshmode/mesh/processing.py index 2ed265c0..57300fea 100644 --- a/meshmode/mesh/processing.py +++ b/meshmode/mesh/processing.py @@ -574,7 +574,7 @@ def merge_disjoint_meshes(meshes, skip_tests=False, single_group=False): def split_mesh_groups(mesh, element_flags, return_subgroup_mapping=False): - """Split all the groups in *mesh* in according to the values of + """Split all the groups in *mesh* according to the values of *element_flags*. The element flags are expected to be integers defining, for each group, how the elements are to be split into subgroups. For example, a single-group mesh with flags:: @@ -592,7 +592,7 @@ def split_mesh_groups(mesh, element_flags, return_subgroup_mapping=False): :returns: a :class:`~meshmode.mesh.Mesh` where each group has been split according to flags in *element_flags*. If *return_subgroup_mapping* is *True*, it also returns a mapping of - ``(group_index, subgroup) -> new_group_index`` + ``(group_index, subgroup) -> new_group_index``. """ assert element_flags.shape == (mesh.nelements,) @@ -608,6 +608,7 @@ def split_mesh_groups(mesh, element_flags, return_subgroup_mapping=False): for flag in unique_grp_flags: subgroup_to_group_map[igrp, flag] = len(new_groups) + # NOTE: making copies to maintain contiguity of the arrays mask = grp_flags == flag new_groups.append(grp.copy( vertex_indices=grp.vertex_indices[mask, :].copy(), -- GitLab