From: dbv Date: Tue, 6 Sep 2016 15:18:11 +0000 (+0300) Subject: Debug for deflection dump X-Git-Tag: V_2.5.0~36 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=51b2fa333be033b4c0a75e2308ba862527fc37f1;p=modules%2Fshaper.git Debug for deflection dump --- 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)