Repository navigation
Conversation
|
I thought mappers look through the MRO specifically for this? From inducer/pymbolic#64 Which mapper in |
@alexfikl You’re right about the MRO fallback. We hit this on a private Loopy development branch (cc @a-alveyblanc). Its helper bypasses the fallback. Sorry, I should have clarified the branch context! @inducer, would you prefer I submit the Loopy fixes to the development repository first? |
|
I'd forgotten about the MRO fallback; thanks @alexfikl. 😁 I'm not yet super familiar with @a-alveyblanc's ongoing development. Which code path hits this? Within |
|
@inducer This happens within |
Sumpy can pass
SpatialConstantnodes to Loopy. Loopy’s domain-aware simplifier first handles them throughmap_variable. It then looks formap_spatial_constanton the parent mapper. That method is missing, causing an AttributeError.As @inducer recommended, this converts spatial constants to ordinary variables after Sumpy’s symbolic transformations.
ChatGPT 6.1 Sol generated the implementation.