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

Catch users who try to index UFL expressions with negative indices #66

Merged
merged 1 commit into from
Aug 13, 2021

Conversation

pefarrell
Copy link
Contributor

I had code where I wanted to access the last component of a vector expression, and used expr[-1]. It turns out that UFL indices don't wrap-around, and it just caused an obscure error in the form compiler later. This patch catches such user errors at a more useful stage.

@wence- wence- merged commit a41f5b6 into FEniCS:main Aug 13, 2021
@wence-
Copy link
Collaborator

wence- commented Aug 13, 2021

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants