From 0a24b0758dc7d946175bb11f8a96b534c8b146da Mon Sep 17 00:00:00 2001 From: dbv Date: Tue, 6 Sep 2016 18:30:58 +0300 Subject: [PATCH] Removed Debug for deflection dump --- src/ModelHighAPI/ModelHighAPI_Dumper.cpp | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp index c49b84114..442e0383a 100644 --- a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp @@ -43,8 +43,6 @@ #include -#define DEBUG_DEFLECTION - static int gCompositeStackDepth = 0; ModelHighAPI_Dumper* ModelHighAPI_Dumper::mySelf = 0; @@ -411,15 +409,8 @@ void ModelHighAPI_Dumper::dumpEntitySetName() // set result deflection if (!isDefaultDeflection(*aResIt)) { AttributeDoublePtr aDeflectionAttr = (*aResIt)->data()->real(ModelAPI_Result::DEFLECTION_ID()); - #ifdef DEBUG_DEFLECTION - std::cout << "aDeflectionAttr.get(): " << (aDeflectionAttr.get() == NULL ? "Empty" : "Not empty") << std::endl; - std::cout << "aDeflectionAttr->isInitialized(): " << aDeflectionAttr->isInitialized() << std::endl; - #endif if(aDeflectionAttr.get() && aDeflectionAttr->isInitialized()) { *this << *aResIt; - #ifdef DEBUG_DEFLECTION - std::cout << "Dump deflection" << std::endl; - #endif myDumpBuffer << ".setDeflection(" << aDeflectionAttr->value() << ")" << std::endl; } } @@ -480,13 +471,6 @@ bool ModelHighAPI_Dumper::isDefaultDeflection(const ResultPtr& theResult) const aDefault = Config_PropManager::real("Visualization", "body_deflection", ModelAPI_ResultBody::DEFAULT_DEFLECTION()); -#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 fabs(aCurrent - aDefault) < 1.e-12; } -- 2.39.2