}
err = 0;
}
-
+/*
+ * to delete tmp files .mesh, .sol and if needed
+ * the log file
+ *
+ */
void MgAdapt::cleanUp()
{
int notOk;
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();
for (; it!=tmpFilesToBeDeleted.end(); ++it)
cmd+= " --in "+ meshIn;
meshFormatOutputMesh = getFileName()+".mesh";
+ tmpFilesToBeDeleted.push_back(meshFormatOutputMesh);
cmd+= " --out "+ meshFormatOutputMesh;
if (useLocalMap || useConstantValue) cmd+= " --sizemap "+ solFileIn;
else // (useBackgroundMap)
std::string solFileOut = getFileName()+".sol";
cmd+= " --write_sizemap "+ solFileOut;
solFormatOutput.push_back(solFileOut);
+ tmpFilesToBeDeleted.push_back(solFileOut);
}
if (verbosityLevel != defaultVerboseLevel())
{