From c2fbf8c70277149977edd6401827ff2aebc0d585 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner Date: Sat, 7 Jan 2017 10:14:38 +0800 Subject: [PATCH] Fix tensor product vertex count error message --- meshmode/mesh/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshmode/mesh/__init__.py b/meshmode/mesh/__init__.py index 70145bea..6b65caf4 100644 --- a/meshmode/mesh/__init__.py +++ b/meshmode/mesh/__init__.py @@ -326,7 +326,7 @@ class TensorProductElementGroup(MeshElementGroup): if vertex_indices.shape[-1] != 2**dims: raise ValueError("vertex_indices has wrong number of vertices per " - "element. expected: %d, got: %d" % (dims+1, + "element. expected: %d, got: %d" % (2**dims, vertex_indices.shape[-1])) super(TensorProductElementGroup, self).__init__(order, vertex_indices, nodes, -- GitLab