From: eap Date: Wed, 8 Jan 2014 14:57:14 +0000 (+0000) Subject: do not redirect std::cout in _DEBUG_ mode X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=refs%2Fheads%2FBR_imps_2013;p=plugins%2Fnetgenplugin.git do not redirect std::cout in _DEBUG_ mode --- 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(); }