mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 10:10:33 +05:00
Better error handling for parallel mesh
This commit is contained in:
parent
1dab7a05bb
commit
d006955bea
@ -61,7 +61,6 @@ SMESH_ParallelMesh::~SMESH_ParallelMesh()
|
||||
void SMESH_ParallelMesh::cleanup()
|
||||
{
|
||||
DeletePoolThreads();
|
||||
std::cout << "Keeping tmp folder" << keepingTmpFolfer() << std::endl;
|
||||
if(!keepingTmpFolfer())
|
||||
{
|
||||
MESSAGE("Set SMESH_KEEP_TMP to > 0 to keep temporary folders")
|
||||
@ -78,7 +77,6 @@ void SMESH_ParallelMesh::cleanup()
|
||||
bool SMESH_ParallelMesh::keepingTmpFolfer()
|
||||
{
|
||||
const char* envVar = std::getenv("SMESH_KEEP_TMP");
|
||||
std::cout << "smesh_keep_tmp: " << envVar << std::endl;
|
||||
|
||||
if (envVar && (envVar[0] != '\0'))
|
||||
{
|
||||
|
@ -244,10 +244,11 @@ def run_pylauncher(args):
|
||||
del_tmp_folder = True
|
||||
try:
|
||||
val = int(environ.get("SMESH_KEEP_TMP", "0"))
|
||||
del_tmp_folder = val > 0
|
||||
del_tmp_folder = val < 0
|
||||
except Exception as e:
|
||||
del_tmp_folder = True
|
||||
|
||||
if del_tmp_folder:
|
||||
launcher.clearJobWorkingDir(job_id)
|
||||
|
||||
def def_arg():
|
||||
|
Loading…
Reference in New Issue
Block a user