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

Function AbstractState_phase

src/CoolPropLib.cpp:1077–1087  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1075}
1076
1077EXPORT_CODE int CONVENTION AbstractState_phase(const long handle, long* errcode, char* message_buffer, const long buffer_length) {
1078 *errcode = 0;
1079 fpu_reset_guard guard;
1080 try {
1081 shared_ptr<CoolProp::AbstractState>& AS = handle_manager.get(handle);
1082 return AS->phase();
1083 } catch (...) {
1084 HandleException(errcode, message_buffer, buffer_length);
1085 }
1086 return -1;
1087}
1088
1089EXPORT_CODE void CONVENTION AbstractState_fluid_param_string(const long handle, const char* param, char* return_buffer,
1090 const long return_buffer_length, long* errcode, char* message_buffer,

Callers

nothing calls this directly

Calls 3

HandleExceptionFunction · 0.85
getMethod · 0.45
phaseMethod · 0.45

Tested by

no test coverage detected