standard error stream of 'netgen' is redirected to the same temporary file as standard output stream.
_isComputeOk = false;
_outputFileName = getOutputFileName();
netgen::mycout = new ofstream ( _outputFileName.c_str() );
- cout << "NOTE: netgen output redirected to file " << _outputFileName << endl;
+ netgen::myerr = netgen::mycout;
+ cout << "NOTE: netgen output is redirected to file " << _outputFileName << endl;
_ngMesh = Ng_NewMesh();
}
{
delete netgen::mycout;
netgen::mycout = 0;
+ netgen::myerr = 0;
}
SALOMEDS_Tool::RemoveTemporaryFiles( tmpDir.c_str(), aFiles.in(), true );
- cout << "NOTE: netgen output log REMOVED " << _outputFileName << endl;
+ cout << "NOTE: netgen output log was REMOVED " << _outputFileName << endl;
}