Commit 296e2184 authored by Marco Amagliani's avatar Marco Amagliani
Browse files

Made the suppression of Ipopt console output optional.

parent 7b4471c3
......@@ -20,6 +20,7 @@
#include "BoundConstraint.hh"
#include "CoMISo/Utils/CoMISoError.hh"
#include <Base/Debug/DebFile.hh>
#include <Base/Debug/DebTime.hh>
#include <gmm/gmm.h>
......@@ -57,8 +58,16 @@ IPOPTSolverLean::IPOPTSolverLean()
impl_->app_->Options()->SetStringValue("linear_solver", "mumps");
#endif
#if DEB_ON
const bool sprss_cnsl_out = !::Debug::File::File::modify().console_output_on();
#else
const bool sprss_cnsl_out = true;
#endif
if (sprss_cnsl_out)
{
// Block any output on cout and cerr from ipopt.
impl_->app_->Options()->SetStringValue("suppress_all_output", "yes");
}
#ifdef WIN32
// Restrict memory to be able to run larger problems on windows
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment