diff --git a/meshmode/discretization/__init__.py b/meshmode/discretization/__init__.py index 0c356885818d9a797c3b765d59b9a6425d31298c..6a4fcda7565487d44ee49045871d9226762af2db 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