22170: [CEA 704] Redirect NETGEN outup in a log file

restore cout possibly redirected by algo
This commit is contained in:
eap 2013-09-10 13:52:57 +00:00
parent b0382c4298
commit c81123c27b

View File

@ -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 )