-
Notifications
You must be signed in to change notification settings - Fork 7
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
Add generic nodal/modal bilinear form routines #103
Add generic nodal/modal bilinear form routines #103
Conversation
Not sure why ruff was failing here. It wasn't failing locally, and I didn't change any of the files the ruff CI test was complaining about. Fixed them anyway, but happy to revert if it seems like a CI bug. The changes in |
That's a new check in ruff 0.8.2: astral-sh/ruff#14611. Thanks for fixing it! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks great! Just a few style quibbles below.
Seems like |
Those seem to be due to an issue with some new numpy typing changes: numpy/numpy#27957. |
The first go was a confusing amalgamation of two versions of applying an operator to evaluate a bilinear form. They should now be cleanly separated with names that do a better job of describing what's happening. What I mean by "two versions" is:
Hopefully this is more clear. Happy to convert to a draft if we think more work needs to be done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just took a quick look and left some comments 😁
Unsubscribing... @-mention or request review once it's ready for a look or needs attention. |
…nd-modal-bilinear-forms
@inducer This is ready for another look |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some thoughts from a quick scroll below.
Co-authored-by: Andreas Klöckner <[email protected]>
…anc/modepy into nodal-and-modal-bilinear-forms
…nd-modal-bilinear-forms
Thanks, LGTM! |
It would be helpful to have a more general version of
nodal_quad_mass_matrix
. My specific use case for this routine is generating operators representing bilinear forms that have derivatives on the test functions but not necessarily on the trial functions. More generally, this can be useful to generate operators representing bilinear forms whose test and trial functions are not the same.Functionality of
nodal_quad_mass_matrix
andmodal_quad_mass_matrix
are updated to use the new, general routines.