diff --git a/src/CoolProp.cpp b/src/CoolProp.cpp index a2ea87b8..154e1fe1 100644 --- a/src/CoolProp.cpp +++ b/src/CoolProp.cpp @@ -168,7 +168,8 @@ std::string extract_fractions(const std::string &fluid_string, std::vector 10*DBL_EPSILON) // Only push component if fraction is positive and non-zero + if ((f > 10*DBL_EPSILON) || // Only push component if fraction is positive and non-zero + (pairs.size() == 1)) // ..or if there is only one fluid (i.e. INCOMP backend ) { // And add to vector fractions.push_back(f);