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

Allow passing scalars (and containers of scalars) to DirectDiscretizationConnection #398

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

majosm
Copy link
Collaborator

@majosm majosm commented Mar 6, 2024

project(...) in grudge currently fails when passed an object array of numbers, because it only checks whether the entire input is a number (code), not whether it's an array container of them. Checking down inside DirectDiscretizationConnection instead fixes that.

@inducer
Copy link
Owner

inducer commented Mar 6, 2024

LGTM.

When this is done, could you remove the old (and then-redundant) number handling from project?

https://github.com/inducer/grudge/blob/df1c6f28fb8283a6af52edc5df4d7c1aa5f9d85d/grudge/projection.py#L81-L82

@inducer inducer enabled auto-merge (rebase) March 6, 2024 17:43
@inducer inducer merged commit 3c38a48 into inducer:main Mar 6, 2024
12 checks passed
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