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

Notify on outup redirection in DEBUG mode only
This commit is contained in:
eap 2013-07-23 12:55:24 +00:00
parent 72ea55dd02
commit 20a307c4b6

View File

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