From 2e28e60395ff794d2302207b04a710b1ab9b52e1 Mon Sep 17 00:00:00 2001 From: eap Date: Wed, 8 Jan 2014 14:57:14 +0000 Subject: [PATCH] do not redirect std::cout in _DEBUG_ mode --- src/NETGENPlugin/NETGENPlugin_Mesher.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index 36f1324..379099e 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -3614,8 +3614,9 @@ NETGENPlugin_NetgenLibWrapper::NETGENPlugin_NetgenLibWrapper() _coutBuffer = std::cout.rdbuf(); #ifdef _DEBUG_ cout << "NOTE: netgen output is redirected to file " << _outputFileName << endl; -#endif +#else std::cout.rdbuf( netgen::mycout->rdbuf() ); +#endif _ngMesh = Ng_NewMesh(); } -- 2.39.2