From 2db80a4c6097273c73d68214e04b71fa3ff898d9 Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Sat, 12 Jul 2014 16:38:43 -0400 Subject: [PATCH] Fixed one bug with pseudo-pure saturation calls Signed-off-by: Ian Bell --- src/Backends/Helmholtz/FlashRoutines.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Backends/Helmholtz/FlashRoutines.cpp b/src/Backends/Helmholtz/FlashRoutines.cpp index 9d40fba5..aeaf6bd5 100644 --- a/src/Backends/Helmholtz/FlashRoutines.cpp +++ b/src/Backends/Helmholtz/FlashRoutines.cpp @@ -51,7 +51,7 @@ void FlashRoutines::QT_flash(HelmholtzEOSMixtureBackend &HEOS) } rhoLsat = HEOS.solver_rho_Tp(HEOS._T, psatLanc, rhoLanc); - rhoVsat = HEOS.solver_rho_Tp(HEOS._T, psatVanc, rhoLanc); + rhoVsat = HEOS.solver_rho_Tp(HEOS._T, psatVanc, rhoVanc); if (!ValidNumber(rhoLsat) || !ValidNumber(rhoVsat) || fabs(rhoLsat/rhoLanc-1) > 0.1 || fabs(rhoVanc/rhoVsat-1) > 0.1) {