mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-28 02:10:35 +05:00
Forcing removal of temporary output file for MG_adapt
This commit is contained in:
parent
f0898a6840
commit
ea6c739385
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user