mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 17:30:35 +05:00
22170: [CEA 704] Redirect NETGEN outup in a log file
restore cout possibly redirected by algo
This commit is contained in:
parent
b0382c4298
commit
c81123c27b
@ -1561,6 +1561,9 @@ bool SMESH_subMesh::ComputeStateEngine(int event)
|
|||||||
}
|
}
|
||||||
// Compute
|
// Compute
|
||||||
|
|
||||||
|
// to restore cout that may be redirected by algo
|
||||||
|
std::streambuf* coutBuffer = std::cout.rdbuf();
|
||||||
|
|
||||||
//cleanDependants(); for "UseExisting_*D" algos
|
//cleanDependants(); for "UseExisting_*D" algos
|
||||||
//removeSubMeshElementsAndNodes();
|
//removeSubMeshElementsAndNodes();
|
||||||
loadDependentMeshes();
|
loadDependentMeshes();
|
||||||
@ -1641,6 +1644,8 @@ bool SMESH_subMesh::ComputeStateEngine(int event)
|
|||||||
else
|
else
|
||||||
ret = false;
|
ret = false;
|
||||||
}
|
}
|
||||||
|
std::cout.rdbuf( coutBuffer ); // restore cout that could be redirected by algo
|
||||||
|
|
||||||
// check if an error reported on any sub-shape
|
// check if an error reported on any sub-shape
|
||||||
bool isComputeErrorSet = !checkComputeError( algo, ret, shape );
|
bool isComputeErrorSet = !checkComputeError( algo, ret, shape );
|
||||||
if ( isComputeErrorSet )
|
if ( isComputeErrorSet )
|
||||||
|
Loading…
Reference in New Issue
Block a user