MCPcopy Create free account
hub / github.com/CoolProp/CoolProp / CONVENTION PhaseSI

Function CONVENTION PhaseSI

src/CoolPropLib.cpp:298–310  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296 }
297}
298EXPORT_CODE long CONVENTION PhaseSI(const char* Name1, double Prop1, const char* Name2, double Prop2, const char* FluidName, char* phase, int n) {
299 fpu_reset_guard guard;
300 try {
301 std::string s = CoolProp::PhaseSI(std::string(Name1), Prop1, std::string(Name2), Prop2, std::string(FluidName));
302 str2buf(s, phase, n);
303 return 1;
304 } catch (std::exception& e) {
305 CoolProp::set_error_string(e.what());
306 } catch (...) {
307 CoolProp::set_error_string("Undefined error");
308 }
309 return 0;
310}
311/*
312 * EXPORT_CODE double CONVENTION PropsSIZ(const char *Output, const char *Name1, double Prop1, const char *Name2, double Prop2, const char * FluidName, const double *z, int n)
313{

Callers

nothing calls this directly

Calls 5

PhaseSIFunction · 0.85
str2bufFunction · 0.85
set_error_stringFunction · 0.85
whatMethod · 0.80
stringClass · 0.50

Tested by

no test coverage detected