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

Function AbstractState_update

src/CoolPropLib.cpp:651–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

649 return _HUGE;
650}
651EXPORT_CODE void CONVENTION AbstractState_update(const long handle, const long input_pair, const double value1, const double value2, long* errcode,
652 char* message_buffer, const long buffer_length) {
653 *errcode = 0;
654 fpu_reset_guard guard;
655 try {
656 shared_ptr<CoolProp::AbstractState>& AS = handle_manager.get(handle);
657 AS->update(static_cast<CoolProp::input_pairs>(input_pair), value1, value2);
658 } catch (...) {
659 HandleException(errcode, message_buffer, buffer_length);
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;

Callers 2

mainFunction · 0.85
cp_update_stateFunction · 0.85

Calls 3

HandleExceptionFunction · 0.85
getMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected