-
Notifications
You must be signed in to change notification settings - Fork 115
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
Port shock capturing with non-conservative terms into Taal #256
Conversation
-> Added noncons_interface_flux_whole and noncons_interface_flux_inner to ideal_glm_mhd.jl to get the FV non-conservative terms -> Four arrays are now ALWAYS created for the FV fluxes in dg.jl (fstar1_L, fstar1_R, fstar2_L, fstar2_R). This can affect the performance when the non-conservative terms are not present...
…significant performance improvement
Co-authored-by: Hendrik Ranocha <ranocha@users.noreply.github.com>
…rface non-conservative terms
…g of the docstring in the REPL Co-authored-by: Hendrik Ranocha <ranocha@users.noreply.github.com>
… to convert into Taal
Codecov Report
@@ Coverage Diff @@
## dev #256 +/- ##
==========================================
+ Coverage 89.41% 89.66% +0.24%
==========================================
Files 60 60
Lines 10585 10702 +117
==========================================
+ Hits 9465 9596 +131
+ Misses 1120 1106 -14
Continue to review full report at Codecov.
|
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.
Looks good in general 👍 Once everything works, please remove old code that you commented out.
Sorry about that, I forgot to be more careful and remove my "reference" routines |
No worries - that's why we have code review 😉 |
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.
Looks good to me once my comments below are resolved 👍 Thanks, @amrueda and @andrewwinters5000!
Co-authored-by: Hendrik Ranocha <ranocha@users.noreply.github.com>
Co-authored-by: Hendrik Ranocha <ranocha@users.noreply.github.com>
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.
Overall great work! I left a few minor comments or suggestions mostly pertaining to consistency.
One change that affects also current setups is the fact that the SC routines now use non-conservative flux storage even when not using MHD. Have you done a performance check for some Euler tests with Taal before/after to see if and how compute time/memory usage is affected?
I have not done any benchmarking in this respect and, to be honest, am not sure how to do this |
I'll do that now and document it for you here. |
Thanks, @ranocha. If the current implementation turns to be too inefficient, I can try to improve it in a moment. |
I don't suspect it will. But Julia has consistently amazed me in the past about how wrong I can be about performance assumptions... |
Co-authored-by: Michael Schlottke-Lakemper <michael@sloede.com>
Co-authored-by: Michael Schlottke-Lakemper <michael@sloede.com>
Co-authored-by: Michael Schlottke-Lakemper <michael@sloede.com>
Co-authored-by: Michael Schlottke-Lakemper <michael@sloede.com>
Co-authored-by: Michael Schlottke-Lakemper <michael@sloede.com>
Co-authored-by: Michael Schlottke-Lakemper <michael@sloede.com>
Co-authored-by: Michael Schlottke-Lakemper <michael@sloede.com>
Co-authored-by: Michael Schlottke-Lakemper <michael@sloede.com>
Co-authored-by: Michael Schlottke-Lakemper <michael@sloede.com>
Follow these steps for both commits you want to compare. The relevant benchmark results I'm mostly looking at You can also make it more detailed by benchmarking only the calculation of the volume terms but I think that's |
This takes the implementation of @amrueda and puts it into Taal