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

(Vertical) Index Fields can't be used with an offset #1033

Open
mroethlin opened this issue Oct 7, 2020 · 0 comments
Open

(Vertical) Index Fields can't be used with an offset #1033

mroethlin opened this issue Oct 7, 2020 · 0 comments

Comments

@mroethlin
Copy link
Contributor

In this dusk code

@stencil
def ambiguous_index_fields(
  edge_field: Field[Edge],
  sparse_ambiguous_field: Field[Edge > Cell > Edge],
  edge_index_field: IndexField[Edge]
):
  with levels_downwards:
    edge_field = sum_over(Edge > Cell > Edge, sparse_ambiguous_field[edge_index_field])

the access to sparse_ambiguous_field[edge_index_field] is ambiguous, it could either be sparse_ambiguous_field[Edge, edge_index_field] or sparse_ambiguous_field[Edge > Cell > Edge, edge_index_field]. (Dawn defaults to ``sparse_ambiguous_field[Edge, edge_index_field]`).

This is an oversight in the initial design of the Vertical Indirections, and needs to be added throughout the tool chain, including (de)serialization and dawn4py.

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