Fix Coverity CID 38578

This commit is contained in:
mikekaganski
2015-03-07 16:53:55 +10:00
parent 21f44a8a93
commit cc62abca74

View File

@@ -202,15 +202,11 @@ double IncompressibleFluid::dsdTatPxdT(double T, double p, double x){
switch (specific_heat.type) {
case IncompressibleData::INCOMPRESSIBLE_POLYNOMIAL:
return poly.integral(specific_heat.coeffs, T, x, 0, -1, 0, Tbase, xbase);
break;
case IncompressibleData::INCOMPRESSIBLE_NOT_SET:
throw ValueError(format("%s (%d): The function type is not specified (\"[%d]\"), are you sure the coefficients have been set?",__FILE__,__LINE__,specific_heat.type));
break;
default:
throw ValueError(format("%s (%d): There is no predefined way to use this function type \"[%d]\" for entropy.",__FILE__,__LINE__,specific_heat.type));
break;
}
return _HUGE;
}
/// Partial derivative of enthalpy
// with respect to temperature at constant pressure and composition