diff --git a/grudge/projection.py b/grudge/projection.py index e21e0229..0907f227 100644 --- a/grudge/projection.py +++ b/grudge/projection.py @@ -43,8 +43,6 @@ BoundaryDomainTag, ConvertibleToDOFDesc) -from numbers import Number - def project( dcoll: DiscretizationCollection, @@ -78,7 +76,7 @@ def project( # }}} - if isinstance(vec, Number) or src_dofdesc == tgt_dofdesc: + if src_dofdesc == tgt_dofdesc: return vec return dcoll.connection_from_dds(src_dofdesc, tgt_dofdesc)(vec)