mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-02-10 22:04:57 -05:00
Fixed bugs with bad departure function names and better error message; Closes #396
Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
@@ -365,6 +365,8 @@ void MixtureParameters::set_mixture_parameters(HelmholtzEOSMixtureBackend &HEOS)
|
||||
// Get the dictionary itself
|
||||
Dictionary &dict_dep = mixturedeparturefunctionslibrary.departure_function_map[Name];
|
||||
|
||||
if (dict_dep.is_empty()){throw ValueError(format("Departure function name [%s] seems to be invalid",Name.c_str()));}
|
||||
|
||||
// These terms are common
|
||||
std::vector<double> n = dict_dep.get_double_vector("n");
|
||||
std::vector<double> d = dict_dep.get_double_vector("d");
|
||||
|
||||
Reference in New Issue
Block a user