Skip to content
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

Bug fix/gsph units error #102

Merged
merged 2 commits into from
Dec 10, 2021
Merged

Bug fix/gsph units error #102

merged 2 commits into from
Dec 10, 2021

Conversation

jmpearl
Copy link
Collaborator

@jmpearl jmpearl commented Dec 9, 2021

For the edge case of zero sound speed the HLLC solver will break. To avoid this it switches to a normal av implementation when c->0. There's a division operation in there that should have been multiplication so the effective AV pressure would have had some really bizarre units. I think it didn't shown up because the av switch is pretty rare and was only activated on tests where the density was conviently equal to one.

the zero sound speed catch condition in the HLLC solver spit out a interface pressure with the wrong units.
@jmpearl jmpearl requested a review from jmikeowen December 10, 2021 02:38
Copy link
Collaborator

@jmikeowen jmikeowen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh yeah, gotta love those corner cases. This looks fine, for code changes. Do we have any tests that exercise this switch and would show the bad Q behavior?

@jmikeowen jmikeowen merged commit aa28fb4 into develop Dec 10, 2021
@jmpearl jmpearl deleted the bug-fix/GSPH-unitsError branch December 10, 2021 19:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants