Forcing removal of temporary output file for MG_adapt

This commit is contained in:
YOANN AUDOUIN 2023-09-11 15:36:36 +02:00
parent f0898a6840
commit ea6c739385

View File

@ -956,6 +956,15 @@ std::string MgAdapt::getCommandToRun()
cmd+= " --in "+ meshIn; cmd+= " --in "+ meshIn;
meshFormatOutputMesh = getFileName()+".mesh"; meshFormatOutputMesh = getFileName()+".mesh";
tmpFilesToBeDeleted.push_back(meshFormatOutputMesh); tmpFilesToBeDeleted.push_back(meshFormatOutputMesh);
if ( isFileExist( meshFormatOutputMesh )){
int notOk;
errStr=removeFile(meshFormatOutputMesh , notOk);
if (notOk)
{
appendMsgToLogFile(errStr);
}
}
cmd+= " --out "+ meshFormatOutputMesh; cmd+= " --out "+ meshFormatOutputMesh;
if (useLocalMap || useConstantValue) cmd+= " --sizemap "+ solFileIn; if (useLocalMap || useConstantValue) cmd+= " --sizemap "+ solFileIn;
else // (useBackgroundMap) else // (useBackgroundMap)