mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Fix bug in init of mole fractions for cubic backends; closes #1125
This commit is contained in:
@@ -14,6 +14,10 @@ void CoolProp::AbstractCubicBackend::setup(bool generate_SatL_and_SatV){
|
||||
mole_fractions = std::vector<CoolPropDbl>(1, 1.0);
|
||||
mole_fractions_double = std::vector<double>(1, 1.0);
|
||||
}
|
||||
else{
|
||||
mole_fractions.clear();
|
||||
mole_fractions_double.clear();
|
||||
}
|
||||
// Now set the reducing function for the mixture
|
||||
Reducing.reset(new ConstantReducingFunction(cubic->T_r, cubic->rho_r));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user