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

Function get_phase_index

src/DataStructures.cpp:423–430  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421}
422
423phases get_phase_index(const std::string& param_name) {
424 phases iPhase;
425 if (is_valid_phase(param_name, iPhase)) {
426 return iPhase;
427 } else {
428 throw ValueError(format("Your input name [%s] is not valid in get_phase_index (names are case sensitive)", param_name.c_str()));
429 }
430}
431
432struct scheme_info
433{

Callers 4

getPhaseNumFunction · 0.85
DataStructures.cppFile · 0.85
CoolProp-Tests.cppFile · 0.85

Calls 2

is_valid_phaseFunction · 0.85
formatFunction · 0.70

Tested by

no test coverage detected