Fix volume_integral_kernel! for DGMulti, VolumeIntegralWeakForm#2812
Conversation
Review checklistThis checklist is meant to assist creators of PRs (to let them know what reviewers will typically look for) and reviewers (to guide them in a structured review process). Items do not need to be checked explicitly for a PR to be eligible for merging. Purpose and scope
Code quality
Documentation
Testing
Performance
Verification
Created with ❤️ by the Trixi.jl community. |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #2812 +/- ##
==========================================
- Coverage 97.10% 97.10% -0.00%
==========================================
Files 589 589
Lines 45539 45543 +4
==========================================
+ Hits 44218 44221 +3
- Misses 1321 1322 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
ranocha
left a comment
There was a problem hiding this comment.
I think there was another place in the original PR with the same pattern. Moreover, this introduces a change from one big matri multiplication to many smaller ones, which can have an impact on performance. Did you benchmark it?
Alternatively, we could dispatch |
|
Could you move the multiplication by rd.Vq into calc_volume_integral instead, outside the element loop? This should preserve the original performance but factor out common code for both affine and non-affine meshes. |
Since it's not exported I'm less worried about that. It can be unified by ensuring that the cache has some consistency across different DGMulti volume integrals, which I am hoping to do anyways. |
I will add a comment, should be fine then 👍 |
jlchan
left a comment
There was a problem hiding this comment.
Thanks - sorry I missed issue previously.
|
Thanks! |
…trixi-framework#2812) * Fix `volume_integral_kernel!` for `DGMulti`, `VolumeIntegralWeakForm` * fix * adapt * comment * change
See https://github.com/trixi-framework/Trixi.jl/pull/2809/files/7f0ceb876379295836b99d2c009993aac9036d5c#r2820350827