-
-
Notifications
You must be signed in to change notification settings - Fork 346
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
RedlichKisterVPSSTP bug and fix #293
Conversation
…to correct bug in RedlichKisterVPSSTP::getlnActCoeffdlnX_diag() which would always return 0
…to correct bug in RedlichKisterVPSSTP::getlnActCoeffdlnX_diag() which would always return 0
…to correct bug in RedlichKisterVPSSTP::getlnActCoeffdlnX_diag() which would always return 0
Is there a difference between I would also like to draw your attention to #267, where it is noted that there are no tests or examples for this class. Since you are apparently using this class, do you have any examples or tests which could be incorporated into the Cantera test suite? |
There's a couple differences between
And yes, I have some examples which I think I could clean up and add to the test suite. |
Got it. I don't really like the amount of redundancy between the two methods, but I guess it's no worse than what's already there in the other "update" methods of If you can add some examples to the test suite, that would be spectacular. At this point, new tests should be added to either the Python test suite (in |
@pwcnorthrop Any possibility of getting any examples which utilize this method (or any part of |
@speth Sorry, I had got caught up on other things and forgot about setting this up. Anyway, I've added a test to the |
Thanks, this looks promising. Two hopefully small requests:
|
Ok, sorry this has been a mess. This is my first time using git and github, so it's been a bit of a (admittedly slow) learning process. I couldn't figure out how to revert cleanly back to before I merged the master, so I ended up committing/pushing changes that simply removed the test case. And the final push should just be the addition of the test case in the Thanks for your patience. |
RedlichKisterVPSSTP::getdlnActCoeffdlnX_diag() returns the array dlnActCoeffdlnX_diag_.
The problem was that dlnActCoeffdlnX_diag_ was never getting updated and thus always returned an array of zeros. I created a function s_update_dlnActCoeff_dlnX_diag() to, well, update dlnActCoeffdlnX_diag_ so it now works now as expected.