From ea6c73938597bf84751642be30728be601765cd6 Mon Sep 17 00:00:00 2001 From: YOANN AUDOUIN Date: Mon, 11 Sep 2023 15:36:36 +0200 Subject: [PATCH] Forcing removal of temporary output file for MG_adapt --- src/SMESH/MG_ADAPT.cxx | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/SMESH/MG_ADAPT.cxx b/src/SMESH/MG_ADAPT.cxx index 633d71283..54553fd10 100644 --- a/src/SMESH/MG_ADAPT.cxx +++ b/src/SMESH/MG_ADAPT.cxx @@ -956,6 +956,15 @@ std::string MgAdapt::getCommandToRun() cmd+= " --in "+ meshIn; meshFormatOutputMesh = getFileName()+".mesh"; tmpFilesToBeDeleted.push_back(meshFormatOutputMesh); + if ( isFileExist( meshFormatOutputMesh )){ + int notOk; + errStr=removeFile(meshFormatOutputMesh , notOk); + if (notOk) + { + appendMsgToLogFile(errStr); + } + } + cmd+= " --out "+ meshFormatOutputMesh; if (useLocalMap || useConstantValue) cmd+= " --sizemap "+ solFileIn; else // (useBackgroundMap) -- 2.30.2