-
Notifications
You must be signed in to change notification settings - Fork 11
Allow specifying leaf class in recursive map and map-reduce #128
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
Conversation
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.
One little comment, but code-wise this looks good to me!
What's the use case? Looking at illinois-ceesd/mirgecom#566, it seems like it would only be used with DOFArrays, but there's already a function for that in meshmode.dof_array. Would that do the trick?
TIL 🙂 Yes, I think it might. On the other hand, this change could remove the existing code duplication (i.e., |
It actually was initially! Well, in terms of I don't feel particularly strongly about it either, so we can let @inducer break the tie 😁 |
|
I'm gravitating towards having this implemented here and making the
I also feel like the speed difference is probably non-existent. (pending benchmarks proving me wrong 😁 ) |
Made a simple benchmark using this patch and the version from so mostly just confused now 😕. Either way, it's definitely negligible! |
b7548b0 to
5e61d84
Compare
5e61d84 to
b395fa8
Compare
64a4dec to
442a119
Compare
|
Ready for another look @inducer. |
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.
LGTM, thanks! If we can ever get the (currently super flaky) CI to pass, this'll land.
I think this could help simplify the logic in a couple of places in illinois-ceesd/mirgecom#566 (example).
cc @thomasgibson