mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 09:20:34 +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
|
||||
|
||||
// to restore cout that may be redirected by algo
|
||||
std::streambuf* coutBuffer = std::cout.rdbuf();
|
||||
|
||||
//cleanDependants(); for "UseExisting_*D" algos
|
||||
//removeSubMeshElementsAndNodes();
|
||||
loadDependentMeshes();
|
||||
@ -1641,6 +1644,8 @@ bool SMESH_subMesh::ComputeStateEngine(int event)
|
||||
else
|
||||
ret = false;
|
||||
}
|
||||
std::cout.rdbuf( coutBuffer ); // restore cout that could be redirected by algo
|
||||
|
||||
// check if an error reported on any sub-shape
|
||||
bool isComputeErrorSet = !checkComputeError( algo, ret, shape );
|
||||
if ( isComputeErrorSet )
|
||||
|
Loading…
Reference in New Issue
Block a user