mirror of
https://github.com/CoolProp/CoolProp.git
synced 2026-04-23 03:00:17 -04:00
Fix Coverity CID 38553
This commit is contained in:
@@ -91,18 +91,15 @@ double SaturationAncillaryFunction::invert(double value, double min_bound, doubl
|
||||
class solver_resid : public FuncWrapper1D
|
||||
{
|
||||
public:
|
||||
int other;
|
||||
SaturationAncillaryFunction *anc;
|
||||
CoolPropDbl T, value, r, current_value;
|
||||
CoolPropDbl value;
|
||||
|
||||
solver_resid(SaturationAncillaryFunction *anc, CoolPropDbl value) : anc(anc), value(value){};
|
||||
solver_resid(SaturationAncillaryFunction *anc, CoolPropDbl value) : anc(anc), value(value){}
|
||||
|
||||
double call(double T){
|
||||
this->T = T;
|
||||
current_value = anc->evaluate(T);
|
||||
r = current_value - value;
|
||||
return r;
|
||||
};
|
||||
CoolPropDbl current_value = anc->evaluate(T);
|
||||
return current_value - value;
|
||||
}
|
||||
};
|
||||
solver_resid resid(this, value);
|
||||
std::string errstring;
|
||||
|
||||
Reference in New Issue
Block a user