-
Notifications
You must be signed in to change notification settings - Fork 98
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
update the shock detection algorithm for r-theta #2959
update the shock detection algorithm for r-theta #2959
Conversation
Source/hydro/advection_util.cpp
Outdated
// balances that is not available to make a shock. | ||
// balances that is not available to make a shock. We compute this | ||
// as: | ||
// P'_{i+1} = P_{i+1} - [ P_i - \int_{x_i}^{x_{i+1}} rho g dx |
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.
extra [
in comment here?
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 was missing the close ]
. Fixed.
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've made the comment clearer
Source/hydro/advection_util.cpp
Outdated
// balances that is not available to make a shock. | ||
// balances that is not available to make a shock. We compute this | ||
// as: | ||
// P'_{i+1} = P_{i+1} - [ P_i - \int_{x_i}^{x_{i+1}} rho g dx ] |
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.
wouldn't that make it +rho g dx
since there are two minus?
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've made the comment clearer and fixed the sign
PR summary
PR motivation
PR checklist
CHANGES
file has been updated, if appropriate