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

Cleaning up pressure implementation in MixtureFugacityTP and derived classes #436

Merged
merged 4 commits into from Feb 22, 2017

Conversation

decaluwe
Copy link
Member

Changes proposed in this pull request:
-Removes m_Pcurrent as a cached value in MixtureFugacityTP and derived classes (RedlichKwongMFTP).
-Replaces the one time this value was ever used (in RedlichKwongMFTP::getPartialMolarVolumes) with a direct call to RedlichKwongMFTP::pressure(), which now returns the EoS-calculated pressure value (it previously returned the previously stored m_Pcurrent).

…d classes.

Cleaning up `RedlichKwongMFTP:pressure()` and removing `m_Pcurrent` as a cached
value in `RedlichKwongMFTP` and `MixtureFugacityTP`.  The stored value was only
ever called in one location `RedlichKwongMFTP:getPartialMolarVolumes()`, and
the function call it replaced (`RedlichKwongMFTP:pressure()`) is not all that
involved.
@codecov
Copy link

codecov bot commented Feb 21, 2017

Codecov Report

Merging #436 into master will increase coverage by <.01%.
The diff coverage is 50%.

@@            Coverage Diff             @@
##           master     #436      +/-   ##
==========================================
+ Coverage   57.44%   57.44%   +<.01%     
==========================================
  Files         377      377              
  Lines       40273    40264       -9     
  Branches     6701     6700       -1     
==========================================
- Hits        23133    23130       -3     
+ Misses      15178    15173       -5     
+ Partials     1962     1961       -1
Impacted Files Coverage Δ
include/cantera/thermo/MixtureFugacityTP.h 100% <ø> (ø)
src/thermo/MixtureFugacityTP.cpp 14.65% <ø> (-0.51%)
src/thermo/RedlichKwongMFTP.cpp 32.25% <50%> (+0.09%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a02753a...29ea877. Read the comment docs.

@decaluwe
Copy link
Member Author

I don't know enough to understand what the codecov/patch failure is telling me, nor how to fix it. Can someone spell it out a little bit for me? Thanks.

@speth
Copy link
Member

speth commented Feb 21, 2017

I would regard it as mainly informational -- it's just saying that the lines changed in the patch are less well-covered by the test suite than average. It's not an impediment to merging the PR.

@decaluwe
Copy link
Member Author

decaluwe commented Feb 21, 2017 via email

@speth speth merged commit dd521de into Cantera:master Feb 22, 2017
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.

None yet

2 participants