From 725c8bf3b940ea72c69e243e327aae488662e05b Mon Sep 17 00:00:00 2001 From: dbv Date: Tue, 6 Sep 2016 17:51:32 +0300 Subject: [PATCH] Debug for deflection dump --- src/ModelHighAPI/ModelHighAPI_Dumper.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp index 2cd7d223f..f3247183a 100644 --- a/src/ModelHighAPI/ModelHighAPI_Dumper.cpp +++ b/src/ModelHighAPI/ModelHighAPI_Dumper.cpp @@ -411,8 +411,15 @@ void ModelHighAPI_Dumper::dumpEntitySetName() // set result deflection if (!isDefaultDeflection(*aResIt)) { AttributeDoublePtr aDeflectionAttr = (*aResIt)->data()->real(ModelAPI_Result::DEFLECTION_ID()); - if(aDeflectionAttr && aDeflectionAttr->isInitialized()) { + #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; } } -- 2.39.2