From c6f52f3e8e6fd0a47b03e8e9e94bcf2d40410fc0 Mon Sep 17 00:00:00 2001 From: Alex Fikl Date: Sun, 17 Jun 2018 20:19:41 -0500 Subject: [PATCH] discretization: fix error string --- meshmode/discretization/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meshmode/discretization/__init__.py b/meshmode/discretization/__init__.py index 0c356885..6a4fcda7 100644 --- a/meshmode/discretization/__init__.py +++ b/meshmode/discretization/__init__.py @@ -95,9 +95,10 @@ class ElementGroupBase(object): return self.mesh_el_group.dim def basis(self): - raise NoninterpolatoryElementGroupError("'%s' " + raise NoninterpolatoryElementGroupError("'{}' " "is not equipped with a unisolvent function space " - "and therefore cannot be used for interpolation") + "and therefore cannot be used for interpolation" + .format(self.__class__.__name__)) grad_basis = basis diff_matrices = basis -- GitLab