From dc8e3cdbea109d3dfa6ad23f6dc5494021858d5a Mon Sep 17 00:00:00 2001 From: Christophe Bourcier Date: Thu, 27 Apr 2023 16:03:18 +0200 Subject: [PATCH] Remove files only if asked by the user --- src/HexoticPlugin/HexoticPlugin_Hexotic.cxx | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx b/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx index 9413d17..dc8c964 100644 --- a/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx +++ b/src/HexoticPlugin/HexoticPlugin_Hexotic.cxx @@ -1171,8 +1171,6 @@ bool HexoticPlugin_Hexotic::Compute(SMESH_Mesh& aMesh, if ( !_keepFiles ) { - if (! Ok && _computeCanceled ) - removeFile( aLogFileName ); removeFile(Hexotic_Out); removeFile(Hexotic_In); for ( size_t i = 0; i < sizeMapFiles.size(); i++ ) @@ -1291,16 +1289,19 @@ bool HexoticPlugin_Hexotic::Compute(SMESH_Mesh & aMesh, SMESH_MesherHelper* aHel std::cout << "Hexahedra meshing " << hexahedraMessage << std::endl; std::cout << std::endl; - if(_computeCanceled) + if (_computeCanceled) return error(SMESH_Comment("interruption initiated by user")); - removeFile(Hexotic_Out); - removeFile(Hexotic_In); - if ( Ok ) - removeFile(aLogFileName); - for( size_t i=0; i