Unspecify the phase when using Halley's method with P+Y flash

This commit is contained in:
Ian Bell
2015-07-22 00:43:48 -06:00
parent 2149643575
commit 8adb159a0e

View File

@@ -1086,6 +1086,8 @@ void FlashRoutines::HSU_P_flash_singlephase_Brent(HelmholtzEOSMixtureBackend &HE
{
throw ValueError("Halley's method was unable to find a solution in HSU_P_flash_singlephase_Brent");
}
// Un-specify the phase of the fluid
HEOS.unspecify_phase();
}
catch(...){
try{