From c8f2626526f8bd2a5a5eb14c6e35876312a8539e Mon Sep 17 00:00:00 2001 From: Yoann Audouin Date: Wed, 12 Oct 2022 11:24:26 +0200 Subject: [PATCH] Minor corrections for debug messages --- src/SMESH/SMESH_Mesh.cxx | 3 ++- src/SMESH/SMESH_subMesh.cxx | 11 ++++------- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index bd101248c..077fd7f44 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -242,8 +242,9 @@ SMESH_Mesh::~SMESH_Mesh() if(_pool) DeletePoolThreads(); - if (!MYDEBUG) +#ifndef _DEBUG_ fs::remove_all(tmp_folder); +#endif } //================================================================================ diff --git a/src/SMESH/SMESH_subMesh.cxx b/src/SMESH/SMESH_subMesh.cxx index ace4c6f1f..76dfb83e1 100644 --- a/src/SMESH/SMESH_subMesh.cxx +++ b/src/SMESH/SMESH_subMesh.cxx @@ -63,10 +63,9 @@ using namespace std; #ifdef _DEBUG_ // enable printing algo + shape id + hypo used while meshing -//#define PRINT_WHO_COMPUTE_WHAT +#define PRINT_WHO_COMPUTE_WHAT #endif -//#define PRINT_WHO_COMPUTE_WHAT //============================================================================= /*! * \brief Allocate some memory at construction and release it at destruction. @@ -1646,11 +1645,9 @@ bool SMESH_subMesh::ComputeStateEngine(compute_event event) #ifdef PRINT_WHO_COMPUTE_WHAT for (subS.ReInit(); subS.More(); subS.Next()) { - const std::list & hyps - { - SMESH_MeshLocker myLocker(_father); - hyps = _algo->GetUsedHypothesis( *_father, _subShape ); - } + SMESH_MeshLocker myLocker(_father); + const std::list & hyps = + _algo->GetUsedHypothesis( *_father, _subShape ); SMESH_Comment hypStr; if ( !hyps.empty() ) { -- 2.39.2