diff --git a/meshmode/mesh/__init__.py b/meshmode/mesh/__init__.py index 2625515c47c537cacd4b7c9a86d66ace1adc940e..19ef8e5ddaf46b283ea9ca3431d672f57deca4fb 100644 --- a/meshmode/mesh/__init__.py +++ b/meshmode/mesh/__init__.py @@ -115,6 +115,9 @@ class BTAG_PARTITION(object): # noqa def __ne__(self, other): return not self.__eq__(other) + def __repr__(self): + return "<%s(%s)>" % (type(self).__name__, repr(self.part_nr)) + SYSTEM_TAGS = set([BTAG_NONE, BTAG_ALL, BTAG_REALLY_ALL, BTAG_NO_BOUNDARY, BTAG_PARTITION])