All the function interfaces that point to the single-input Props function
| 150 | |
| 151 | // All the function interfaces that point to the single-input Props function |
| 152 | EXPORT_CODE double CONVENTION Props1(const char* FluidName, const char* Output) { |
| 153 | fpu_reset_guard guard; |
| 154 | double val = Props1SI(Output, FluidName); |
| 155 | if (!ValidNumber(val)) |
| 156 | // Error code was already set in Props1SI |
| 157 | return val; |
| 158 | // val is valid; so, Output is already checked in Props1SI -> get_parameter_index won't throw |
| 159 | CoolProp::parameters iOutput = CoolProp::get_parameter_index(Output); |
| 160 | return convert_from_SI_to_kSI(iOutput, val); |
| 161 | } |
| 162 | EXPORT_CODE double CONVENTION PropsS(const char* Output, const char* Name1, double Prop1, const char* Name2, double Prop2, const char* Ref) { |
| 163 | return Props(Output, Name1[0], Prop1, Name2[0], Prop2, Ref); |
| 164 | } |
nothing calls this directly
no test coverage detected