Fix REFPROP wrapper to allow use of pseudo-pure fluids

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-07-12 15:08:28 -04:00
parent c2a6650984
commit 3e4d431318

View File

@@ -552,14 +552,14 @@ void REFPROPMixtureBackend::set_REFPROP_fluids(const std::vector<std::string> &f
}
else if (ierr > 0) // Error
{
if (k==0 && N > 1)
if (k==0 && N == 1)
continue; // Allow us to use PPF if a pure fluid
else
throw ValueError(format("%s",herr));
throw ValueError(format("%s", herr));
}
else // Warning
{
throw ValueError(format("%s",herr));
throw ValueError(format("%s", herr));
}
}
}