-
Notifications
You must be signed in to change notification settings - Fork 37
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 time offset for LowStorageIntegrator #1151
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.
Nice improvement!
Seems like a CI failure: Error: Could not find file '/home/runner/work/_actions/_temp_68ccd911-c253-4309-82e1-094e899b9ceb/_staging/gregsdennis-dependencies-action-f4fa194/node_modules/.bin/esparse'. |
Yes, somehow the automated docker image cleanup didn't work as expected. I'm looking into it. |
Things should work as before again. |
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 for the addition.
Would you mind adding to the doc (https://parthenon-hpc-lab.github.io/parthenon/develop/src/integrators.html) that c is now also available for the low storage integrators (and potentially even the conversion formula you used to calculate c)?
Also a changelog entry would be great.
|
||
delta[2] = 0.0; | ||
beta[2] = 0.016239790859612; | ||
gam0[2] = 0.035802535958088; | ||
gam1[2] = 0.964197464041912; | ||
c[2] = 1.0537621812245777; |
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.
Is a time offset >1 allowed?
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.
That is unexpected. I observed the expected order of convergence so I assumed it was correct but am not an expert in SSP RK methods.
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.
I couldn't find any restrictions c
so I experimented with changing c[2] <- 1.0
and the result was a loss of accuracy (to 1st order).
I've updated the docs and changelog. Computing |
CI failing. @pbrady will plan to add mathematica notebook. |
Mathematica notebook added |
I removed the binary parts (mostly the rendered images) from the notebook file as they don't render on Github anyway (and added one sentence pointing to the notebook in both the docs in head file). Any objections? |
No objections here. |
PR Summary
I was wanting to supply a time dependent source term (for manufactured solutions) using the LowStorageIntegrator and didn't see a direct way to access the time level associated with each stage. I followed the procedure in Ketcheson 2010 to compute the Butcher table coefficients for the methods. The resulting
c
s were tested out in a Mathematica notebook and recovered the expected order of accuracy.PR Checklist