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

Function is_valid_parameter

src/DataStructures.cpp:213–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

211 return strjoin(strings, ",");
212}
213bool is_valid_parameter(const std::string& param_name, parameters& iOutput) {
214 auto& parameter_information = get_parameter_information();
215 // Try to find it
216 auto it = parameter_information.index_map.find(param_name);
217 // If equal to end, not found
218 if (it != parameter_information.index_map.end()) {
219 // Found, return it
220 iOutput = static_cast<parameters>(it->second);
221 return true;
222 } else {
223 return false;
224 }
225}
226
227bool is_valid_first_derivative(const std::string& name, parameters& iOf, parameters& iWrt, parameters& iConstant) {
228 if (get_debug_level() > 5) {

Callers 7

HandlePropsSIErrorFunction · 0.85
get_parameter_indexFunction · 0.85
get_output_parametersMethod · 0.85
_PropsSImultiFunction · 0.85

Calls 1

Tested by

no test coverage detected