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

Function AbstractState_specify_phase

src/CoolPropLib.cpp:662–672  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

660 }
661}
662EXPORT_CODE void CONVENTION AbstractState_specify_phase(const long handle, const char* phase, long* errcode, char* message_buffer,
663 const long buffer_length) {
664 *errcode = 0;
665 fpu_reset_guard guard;
666 try {
667 shared_ptr<CoolProp::AbstractState>& AS = handle_manager.get(handle);
668 return AS->specify_phase(CoolProp::get_phase_index(std::string(phase)));
669 } catch (...) {
670 HandleException(errcode, message_buffer, buffer_length);
671 }
672}
673EXPORT_CODE void CONVENTION AbstractState_unspecify_phase(const long handle, long* errcode, char* message_buffer, const long buffer_length) {
674 *errcode = 0;
675 fpu_reset_guard guard;

Callers

nothing calls this directly

Calls 5

get_phase_indexFunction · 0.85
HandleExceptionFunction · 0.85
specify_phaseMethod · 0.80
stringClass · 0.50
getMethod · 0.45

Tested by

no test coverage detected