From 51b2fa333be033b4c0a75e2308ba862527fc37f1 Mon Sep 17 00:00:00 2001 From: dbv Date: Tue, 6 Sep 2016 18:18:11 +0300 Subject: [PATCH] Debug for deflection dump --- src/ModelHighAPI/ModelHighAPI_Dumper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp index f3247183a..c49b84114 100644 --- a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp @@ -483,10 +483,11 @@ bool ModelHighAPI_Dumper::isDefaultDeflection(const ResultPtr& theResult) const #ifdef DEBUG_DEFLECTION std::cout << "Current deflection: " << aCurrent << std::endl; std::cout << "Default deflection: " << aDefault << std::endl; + std::cout << "fabs(aCurrent - aDefault): " << fabs(aCurrent - aDefault) << std::endl; #endif - return abs(aCurrent - aDefault) < 1.e-12; + return fabs(aCurrent - aDefault) < 1.e-12; } ModelHighAPI_Dumper& ModelHighAPI_Dumper::operator<<(const char theChar) -- 2.39.2