mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
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:
@@ -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));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user