From b433dde061f260a5739c5981070e27250a7dda83 Mon Sep 17 00:00:00 2001 From: Ian Bell Date: Thu, 18 Sep 2014 18:48:18 +0200 Subject: [PATCH] Actually return the value from the PropsSI function Signed-off-by: Ian Bell --- src/CoolProp.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/CoolProp.cpp b/src/CoolProp.cpp index 2ae3f255..54b21ee8 100644 --- a/src/CoolProp.cpp +++ b/src/CoolProp.cpp @@ -461,10 +461,8 @@ double PropsSI(const std::string &Output, const std::string &Name1, double Prop1 // Here is the real code that is inside the try block extract_backend(Ref, backend, fluid); double val = _PropsSI(Output, Name1, Prop1, Name2, Prop2, backend, fluid, std::vector()); - if (get_debug_level() > 1){ - std::cout << format("_PropsSI will return %g",val) << std::endl; - } - + if (get_debug_level() > 1){ std::cout << format("_PropsSI will return %g",val) << std::endl; } + return val; // END OF TRY #if !defined(PROPSSI_NO_ERROR_CATCH) }