Skip to content

Commit

Permalink
mapper: use full DOFDescriptor in tagger
Browse files Browse the repository at this point in the history
  • Loading branch information
alexfikl committed Dec 8, 2024
1 parent ee4aafc commit df2ce79
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pytential/symbolic/mappers.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,8 +296,8 @@ class LocationTagger(CSECachingMapperMixin[Expression, []],
"""Used internally by :class:`ToTargetTagger`."""

def __init__(self, default_target, default_source):
self.default_source = default_source
self.default_target = default_target
self.default_source = prim.as_dofdesc(default_source)
self.default_target = prim.as_dofdesc(default_target)

def map_common_subexpression_uncached(self, expr) -> Expression:
# Mypy 1.13 complains about this:
Expand Down

0 comments on commit df2ce79

Please sign in to comment.