From 425b0a1c144dd5fe1ed1db2778a25b644dc3bb6f Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Mon, 4 Jan 2016 01:45:06 -0600 Subject: [PATCH] Doc and empty-group fix --- meshmode/mesh/__init__.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meshmode/mesh/__init__.py b/meshmode/mesh/__init__.py index 20c9613d..53916c7a 100644 --- a/meshmode/mesh/__init__.py +++ b/meshmode/mesh/__init__.py @@ -364,6 +364,7 @@ class FacialAdjacencyGroup(Record): .. attribute:: elements ``element_id_t [nfagrp_elements]``. ``elements[i]`` + Group-local element numbers. .. attribute:: element_faces @@ -669,6 +670,9 @@ class Mesh(Record): # {{{ node-vertex consistency test def _test_node_vertex_consistency_simplex(mesh, mgrp): + if mgrp.nelements == 0: + return True + from modepy.tools import UNIT_VERTICES resampling_mat = mp.resampling_matrix( mp.simplex_onb(mgrp.dim, mgrp.order), -- GitLab