mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Small bug fixes
This commit is contained in:
@@ -605,10 +605,6 @@ void FlashRoutines::PQ_flash(HelmholtzEOSMixtureBackend &HEOS)
|
||||
const std::vector<CoolPropDbl> y = HEOS.mole_fractions;
|
||||
std::vector<CoolPropDbl> x(y.size());
|
||||
for (std::size_t i = 0; i < components.size(); ++i){
|
||||
|
||||
// Reference to EOS
|
||||
const EquationOfState &EOS = components[i].EOSVector[0];
|
||||
|
||||
if (components[i].CAS == "7732-18-5"){
|
||||
iWater = i; continue;
|
||||
}
|
||||
|
||||
@@ -518,7 +518,7 @@ bool add_fluids_as_JSON(const std::string &backend, const std::string &fluidstri
|
||||
{
|
||||
if (backend == "SRK" || backend == "PR")
|
||||
{
|
||||
CubicLibrary::add_fluids_as_JSON(fluidstring);
|
||||
CubicLibrary::add_fluids_as_JSON(fluidstring); return true;
|
||||
}
|
||||
else{
|
||||
throw ValueError(format("You have provided an invalid backend [%s] to add_fluids_as_JSON",backend.c_str()));
|
||||
|
||||
Reference in New Issue
Block a user