From c81123c27bc5f59480e785631bc3bd338ce4074c Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 10 Sep 2013 13:52:57 +0000 Subject: [PATCH] 22170: [CEA 704] Redirect NETGEN outup in a log file restore cout possibly redirected by algo --- src/SMESH/SMESH_subMesh.cxx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/SMESH/SMESH_subMesh.cxx b/src/SMESH/SMESH_subMesh.cxx index 1246c5fa3..67649a326 100644 --- a/src/SMESH/SMESH_subMesh.cxx +++ b/src/SMESH/SMESH_subMesh.cxx @@ -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 )