Initialize quality to -1000 for tabular backends; closes #620

This commit is contained in:
Ian Bell
2015-04-25 15:28:11 -06:00
parent cf105f07c0
commit 97fad5263b
2 changed files with 6 additions and 0 deletions

View File

@@ -17,6 +17,9 @@ void CoolProp::TTSEBackend::update(CoolProp::input_pairs input_pair, double val1
cached_single_phase_j = std::numeric_limits<std::size_t>::max();
cached_saturation_iL = std::numeric_limits<std::size_t>::max();
cached_saturation_iV = std::numeric_limits<std::size_t>::max();
// To start, set quality to value that is impossible
_Q = -1000;
switch(input_pair){
case HmolarP_INPUTS:{