From 22bcffe99a90f95dca2d8dc673b71bd4306900db Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Sun, 1 Nov 2015 22:43:31 -0600 Subject: [PATCH] Fixes for check_bc_coverage --- meshmode/mesh/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/meshmode/mesh/__init__.py b/meshmode/mesh/__init__.py index e37d8e2f..20c9613d 100644 --- a/meshmode/mesh/__init__.py +++ b/meshmode/mesh/__init__.py @@ -995,7 +995,7 @@ def check_bc_coverage(mesh, boundary_tags, incomplete_ok=False): if bdry_grp is None: continue - nb_elements = bdry_grp.neighbor_elements + nb_elements = bdry_grp.neighbors assert (nb_elements < 0).all() nb_el_bits = -nb_elements @@ -1006,7 +1006,7 @@ def check_bc_coverage(mesh, boundary_tags, incomplete_ok=False): tag_bit = mesh.boundary_tag_bit(btag) tag_set = (nb_el_bits & tag_bit) != 0 - if seen & tag_set: + if (seen & tag_set).any(): raise RuntimeError("faces with multiple boundary conditions found") seen = seen | tag_set -- GitLab