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

Function is_trivial_parameter

src/DataStructures.cpp:171–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

169}
170
171bool is_trivial_parameter(int key) {
172 auto& parameter_information = get_parameter_information();
173 auto it = parameter_information.trivial_map.find(key);
174 if (it != parameter_information.trivial_map.end()) {
175 return it->second;
176 }
177 throw ValueError(format("Unable to match the key [%d: %s] in is_trivial_parameter", key, get_parameter_information(key, "short").c_str()));
178}
179
180std::string get_parameter_information(int key, std::string_view info) {
181 const std::map<int, std::string>* M = nullptr;

Callers 3

get_output_parametersMethod · 0.85
PropsFunction · 0.85
keyed_outputMethod · 0.85

Calls 2

formatFunction · 0.70

Tested by

no test coverage detected