make_checkpoint writes stats on clog by default
Allow for separating logs from output of an algorithm.
This commit is contained in:
parent
67aaf8b025
commit
c8121c788d
2 changed files with 6 additions and 6 deletions
|
|
@ -194,14 +194,14 @@ eoCheckPoint<EOT>& do_make_checkpoint(eoParser& _parser, eoState& _state, eoValu
|
|||
// The monitors
|
||||
///////////////
|
||||
|
||||
// do we want an eoStdoutMonitor?
|
||||
bool needStdoutMonitor = printBestParam.value()
|
||||
// do we want an eoOStreamMonitor?
|
||||
bool needOutMonitor = printBestParam.value()
|
||||
|| printPopParam.value() ;
|
||||
|
||||
// The Stdout monitor will print parameters to the screen ...
|
||||
if ( needStdoutMonitor )
|
||||
// The monitor will print parameters to the screen ...
|
||||
if ( needOutMonitor )
|
||||
{
|
||||
eoStdoutMonitor *monitor = new eoStdoutMonitor(/*false FIXME remove this deprecated prototype*/);
|
||||
eoMonitor *monitor = new eoOStreamMonitor(std::clog);
|
||||
_state.storeFunctor(monitor);
|
||||
|
||||
// when called by the checkpoint (i.e. at every generation)
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
eoMonitor& eoOStreamMonitor::operator()(void)
|
||||
{
|
||||
if (!out) {
|
||||
std::string str = "eoOStreamMonitor: Could not write to the ooutput stream";
|
||||
std::string str = "eoOStreamMonitor: Could not write to the output stream";
|
||||
throw std::runtime_error(str);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue