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

Adding Roe solver entropy fix and an exact Riemann solver #109

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

orevans
Copy link

@orevans orevans commented Dec 16, 2015

No description provided.

amdq[:,transonic_1] += beta[transonic_1] * lamb(1,q_l[:,transonic_1]) * wave[:,0,transonic_1] * (s[0,transonic_1] >= 0.0) + (beta[transonic_1] * lamb(1,q_l[:,transonic_1]) - s[0,transonic_1]) * wave[:,0,transonic_1] * (s[0,transonic_1] < 0.0)
amdq[:,transonic_2] += beta[transonic_2] * lamb(2,q_m[:,transonic_2]) * wave[:,1,transonic_2] * (s[1,transonic_2] >= 0.0) + (beta[transonic_2] * lamb(2,q_m[:,transonic_2]) - s[1,transonic_2]) * wave[:,1,transonic_2] * (s[1,transonic_2] < 0.0)
apdq[:,transonic_1] += (1. - beta[transonic_1]) * lamb(1,q_m[:,transonic_1]) * wave[:,0,transonic_1] * (s[0,transonic_1] < 0.0) + ((1. - beta[transonic_1]) * lamb(1,q_m[:,transonic_1]) - s[0,transonic_1]) * wave[:,0,transonic_1] * (s[0,transonic_1] >= 0.0)
apdq[:,transonic_2] += (1. - beta[transonic_2]) * lamb(2,q_r[:,transonic_2]) * wave[:,1,transonic_2] * (s[1,transonic_2] < 0.0) + ((1. - beta[transonic_2]) * lamb(2,q_r[:,transonic_2]) - s[1,transonic_2]) * wave[:,1,transonic_2] * (s[1,transonic_2] >= 0.0)
Copy link
Member

Choose a reason for hiding this comment

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

Can you add some continuations to these lines so they are not quite as long?

@mandli
Copy link
Member

mandli commented Dec 17, 2015

Other than the comment above it would be nice to add a test for both Riemann solvers in PyClaw.

@ketch
Copy link
Member

ketch commented Jan 28, 2016

This fails on Travis because we don't have scipy installed there for the Riemann repo. We could add it, or simply move the import inside the roe solver function. I prefer the latter; @orevans could you please move that import?

@mandli mandli added this to the 5.4 milestone Aug 30, 2016
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.

4 participants