Commit f04c3720 authored by Marco Amagliani's avatar Marco Amagliani
Browse files

Renamed debug functions to set/get the option that enable debug output on...

Renamed debug functions to set/get the option that enable debug output on console and on output. Simplfied the logic to always disable the output in release.
parent 296e2184
......@@ -59,11 +59,8 @@ IPOPTSolverLean::IPOPTSolverLean()
#endif
#if DEB_ON
const bool sprss_cnsl_out = !::Debug::File::File::modify().console_output_on();
#else
const bool sprss_cnsl_out = true;
if (!::Debug::File::File::modify().console_output())
#endif
if (sprss_cnsl_out)
{
// Block any output on cout and cerr from ipopt.
impl_->app_->Options()->SetStringValue("suppress_all_output", "yes");
......
Supports Markdown
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