Small bug fixes

This commit is contained in:
Ian Bell
2016-04-20 22:10:18 -06:00
parent 3f38ee6642
commit 25a89b34e9
2 changed files with 1 additions and 5 deletions

View File

@@ -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;
}

View File

@@ -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()));