mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-02-03 14:50:33 +05:00
some precisions
This commit is contained in:
parent
4002febb8b
commit
b04533874f
@ -758,12 +758,19 @@ void MgAdapt::execCmd( const char* cmd, int& err)
|
|||||||
}
|
}
|
||||||
err = 0;
|
err = 0;
|
||||||
}
|
}
|
||||||
|
/*
|
||||||
|
* to delete tmp files .mesh, .sol and if needed
|
||||||
|
* the log file
|
||||||
|
*
|
||||||
|
*/
|
||||||
void MgAdapt::cleanUp()
|
void MgAdapt::cleanUp()
|
||||||
{
|
{
|
||||||
int notOk;
|
int notOk;
|
||||||
std::string errStr;
|
std::string errStr;
|
||||||
if(removeOnSuccess) tmpFilesToBeDeleted.push_back(logFile);
|
if(toKeepWorkingFiles)
|
||||||
|
return;
|
||||||
|
if(removeOnSuccess && printLogInFile)
|
||||||
|
tmpFilesToBeDeleted.push_back(logFile);
|
||||||
|
|
||||||
std::vector< std::string>::iterator it = tmpFilesToBeDeleted.begin();
|
std::vector< std::string>::iterator it = tmpFilesToBeDeleted.begin();
|
||||||
for (; it!=tmpFilesToBeDeleted.end(); ++it)
|
for (; it!=tmpFilesToBeDeleted.end(); ++it)
|
||||||
@ -819,6 +826,7 @@ std::string MgAdapt::getCommandToRun()
|
|||||||
|
|
||||||
cmd+= " --in "+ meshIn;
|
cmd+= " --in "+ meshIn;
|
||||||
meshFormatOutputMesh = getFileName()+".mesh";
|
meshFormatOutputMesh = getFileName()+".mesh";
|
||||||
|
tmpFilesToBeDeleted.push_back(meshFormatOutputMesh);
|
||||||
cmd+= " --out "+ meshFormatOutputMesh;
|
cmd+= " --out "+ meshFormatOutputMesh;
|
||||||
if (useLocalMap || useConstantValue) cmd+= " --sizemap "+ solFileIn;
|
if (useLocalMap || useConstantValue) cmd+= " --sizemap "+ solFileIn;
|
||||||
else // (useBackgroundMap)
|
else // (useBackgroundMap)
|
||||||
@ -840,6 +848,7 @@ std::string MgAdapt::getCommandToRun()
|
|||||||
std::string solFileOut = getFileName()+".sol";
|
std::string solFileOut = getFileName()+".sol";
|
||||||
cmd+= " --write_sizemap "+ solFileOut;
|
cmd+= " --write_sizemap "+ solFileOut;
|
||||||
solFormatOutput.push_back(solFileOut);
|
solFormatOutput.push_back(solFileOut);
|
||||||
|
tmpFilesToBeDeleted.push_back(solFileOut);
|
||||||
}
|
}
|
||||||
if (verbosityLevel != defaultVerboseLevel())
|
if (verbosityLevel != defaultVerboseLevel())
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user