mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-01-23 12:58:03 -05:00
Fix set_reference_stateD(); closes #1091
Now all inputs are molar, and the function actually works!
This commit is contained in:
@@ -115,11 +115,11 @@ EXPORT_CODE int CONVENTION set_reference_stateS(const char *Ref, const char *ref
|
||||
catch (...){ CoolProp::set_error_string("Undefined error"); }
|
||||
return false;
|
||||
}
|
||||
EXPORT_CODE int CONVENTION set_reference_stateD(const char *Ref, double T, double rho, double h0, double s0)
|
||||
EXPORT_CODE int CONVENTION set_reference_stateD(const char *Ref, double T, double rhomolar, double hmolar0, double smolar0)
|
||||
{
|
||||
fpu_reset_guard guard;
|
||||
try{
|
||||
CoolProp::set_reference_stateD(std::string(Ref), T, rho, h0, s0);
|
||||
CoolProp::set_reference_stateD(std::string(Ref), T, rhomolar, hmolar0, smolar0);
|
||||
return true;
|
||||
}
|
||||
catch (std::exception &e){ CoolProp::set_error_string(e.what()); }
|
||||
|
||||
Reference in New Issue
Block a user