MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / Props1

Function Props1

src/CoolPropLib.cpp:152–161  ·  view source on GitHub ↗

All the function interfaces that point to the single-input Props function

Source from the content-addressed store, hash-verified

150
151// All the function interfaces that point to the single-input Props function
152EXPORT_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}
162EXPORT_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}

Callers

nothing calls this directly

Calls 4

ValidNumberFunction · 0.85
get_parameter_indexFunction · 0.85
convert_from_SI_to_kSIFunction · 0.85
Props1SIFunction · 0.70

Tested by

no test coverage detected