-
Notifications
You must be signed in to change notification settings - Fork 56
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
Equation of state is not DRY #13
Comments
This above doesn't even mention the fact that this same problem is repeated in the pre-process and post-process codes. So we effectively do EoS independently in like 8 places (or more). |
The probably is probably best addressed (after discussion with @anandrdbz) by creating pointers, assigned in |
This has similarities to new issue MFlowCode/MFC-develop#18 Thus - it also should probably not be addressed until GPU branch is merged. |
ensures that CI fails when `make tests` fails.
I have gone ahead and implemented the
Therefore I am unsure if there's any way I can really implement |
I think |
@anshgupta1234 Check out these lines in Lines 786 to 853 in d80602a
I think these can probably be factored out completely. One thing we didn't initially notice is how pervasive the computation of We see something similar in MFC/src/simulation/m_riemann_solvers.fpp Lines 464 to 572 in d80602a
We also see the computation of MFC/src/simulation/m_riemann_solvers.fpp Lines 639 to 714 in d80602a
|
I realize this is becoming an omnibus "issue". Let's merge your pull request when you have all of the main variables conversion stuff done, then do speed of sound |
ensures that CI fails when `make tests` fails.
The equation of state is used to compute the pressure from the variables. This EOS changes slightly for different models. The EOS implementation is repeated several places in the code, including in
m_variables_converison
,m_data_output
(including serial data output and probe outputs), and likely more. Following the DRY principle (don't repeat yourself), we should fix this. It has also caused multiple false bugs in the past.The text was updated successfully, but these errors were encountered: