Fixed a error introduced by Speth that caused the brine phase pop problems to fail.

This commit is contained in:
Harry Moffat 2014-06-05 22:40:20 +00:00
parent ea3f74eb27
commit f3a0092b42

View file

@ -601,7 +601,9 @@ double VCS_SOLVE::vcs_phaseStabilityTest(const size_t iph)
}
for (size_t k = 0; k < nsp; k++) {
fracDelta_new[k] = std::min(fracDelta_new[k], 1e-13);
if (fracDelta_new[k] < 1.0E-13) {
fracDelta_new[k] =1.0E-13;
}
}
bool converged = false;
for (int its = 0; its < 200 && (!converged); its++) {