mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Fix HAPropsSI bug; closes #740
This commit is contained in:
@@ -1220,7 +1220,7 @@ double WetbulbTemperature(double T, double p, double psi_w)
|
||||
|
||||
double return_val;
|
||||
try{
|
||||
return_val = Brent(WBS,Tmax+1,200, DBL_EPSILON, 1e-12, 50, errstr);
|
||||
return_val = Brent(WBS,Tmax+1,100, DBL_EPSILON, 1e-12, 50, errstr);
|
||||
|
||||
// Solution obtained is out of range (T>Tmax)
|
||||
if (return_val > Tmax + 1) {throw CoolProp::ValueError();}
|
||||
|
||||
Reference in New Issue
Block a user