Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CoMISo
CoMISo
Commits
296e2184
Commit
296e2184
authored
Sep 23, 2016
by
Marco Amagliani
Browse files
Made the suppression of Ipopt console output optional.
parent
7b4471c3
Changes
1
Hide whitespace changes
Inline
Side-by-side
NSolver/IPOPTSolverLean.cc
View file @
296e2184
...
...
@@ -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
// Block any output on cout and cerr from ipopt.
impl_
->
app_
->
Options
()
->
SetStringValue
(
"suppress_all_output"
,
"yes"
);
#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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment