Fixed bug with derivative not being handled properly to _PropsSI

Signed-off-by: Ian Bell <ian.h.bell@gmail.com>
This commit is contained in:
Ian Bell
2014-11-28 22:57:58 -05:00
parent 2e7309be3b
commit 93e5275100

View File

@@ -229,15 +229,10 @@ double _PropsSI(const std::string &Output, const std::string &Name1, double Prop
return val;
}
}
else{
throw ValueError(format("Invalid output parameter [%s]",Output.c_str()));
}
parameters iName1 = get_parameter_index(Name1);
parameters iName2 = get_parameter_index(Name2);
// Obtain the input pair
CoolProp::input_pairs pair = generate_update_pair(iName1, Prop1, iName2, Prop2, x1, x2);