From: Christophe Bourcier Date: Thu, 27 Apr 2023 14:03:18 +0000 (+0200) Subject: Remove files only if asked by the user X-Git-Tag: V9_11_0a1^0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=dc8e3cdbea109d3dfa6ad23f6dc5494021858d5a;p=plugins%2Fhexoticplugin.git Remove files only if asked by the user --- 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