Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Assignments to Vertical Field cause failed Assertion in PassSetStageLocationType #1067

Open
mroethlin opened this issue Nov 30, 2020 · 0 comments

Comments

@mroethlin
Copy link
Contributor

mroethlin commented Nov 30, 2020

If the left hand side of an assignment is a FieldAccessExpression, the set location type pass tries to retrieve the horizontal dimension of the left hand side here without bothering to check whether the field is vertical. This means stencils like:

@stencil
def vert2vert_assign(
    inF: Field[K], outF: Field[K]):
    with levels_downward as k:
        outF = inF

fail during lowering.

Currently, this has no IIR representation. We should probably wait and see if this has an actual use case.

@mroethlin mroethlin changed the title Assignments to Vertical Field causes failed Assertion in PassSetStageLocationType Assignments to Vertical Field cause failed Assertion in PassSetStageLocationType Nov 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant