From 20a307c4b67ad1558324cdbd9c573926601b0002 Mon Sep 17 00:00:00 2001 From: eap Date: Tue, 23 Jul 2013 12:55:24 +0000 Subject: [PATCH] 0022170: [CEA 704] Redirect NETGEN outup in a log file Notify on outup redirection in DEBUG mode only --- src/NETGENPlugin/NETGENPlugin_Mesher.cxx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx index c5f3bdc..f2ab2e2 100644 --- a/src/NETGENPlugin/NETGENPlugin_Mesher.cxx +++ b/src/NETGENPlugin/NETGENPlugin_Mesher.cxx @@ -3547,8 +3547,9 @@ NETGENPlugin_NetgenLibWrapper::NETGENPlugin_NetgenLibWrapper() _outputFileName = getOutputFileName(); netgen::mycout = new ofstream ( _outputFileName.c_str() ); netgen::myerr = netgen::mycout; +#ifdef _DEBUG_ cout << "NOTE: netgen output is redirected to file " << _outputFileName << endl; - +#endif _ngMesh = Ng_NewMesh(); } @@ -3621,5 +3622,7 @@ void NETGENPlugin_NetgenLibWrapper::removeOutputFile() } SALOMEDS_Tool::RemoveTemporaryFiles( tmpDir.c_str(), aFiles.in(), true ); +#ifdef _DEBUG_ cout << "NOTE: netgen output log was REMOVED " << _outputFileName << endl; +#endif } -- 2.39.2