diff --git a/grudge/array_context.py b/grudge/array_context.py index 7c57f644..a3c92b40 100644 --- a/grudge/array_context.py +++ b/grudge/array_context.py @@ -173,7 +173,7 @@ class _DistributedPartProgramID: part_id: Any def __str__(self): - name = getattr(self.f, "__name__", "") + name = getattr(self.f, "__name__", "anonymous") if not name.isidentifier(): name = _to_identifier(name)