Commit dbcf7f6a authored by Max Lyon's avatar Max Lyon
Browse files

replace set_verbosity with setting the global output_level

parent 87e1d0d0
...@@ -30,6 +30,9 @@ ...@@ -30,6 +30,9 @@
#include <vector> #include <vector>
#include <CoMISo/Utils/ExactConstraintSatisfaction.hh> #include <CoMISo/Utils/ExactConstraintSatisfaction.hh>
#include <Base/Debug/DebConfig.hh>
//------------------------------------------------------------------------------------------------------ //------------------------------------------------------------------------------------------------------
class SmallNProblem : public COMISO::NProblemInterface class SmallNProblem : public COMISO::NProblemInterface
...@@ -120,10 +123,12 @@ int main(void) ...@@ -120,10 +123,12 @@ int main(void)
std::cout << "---------- 3) Solve with Newton Solver..." << std::endl; std::cout << "---------- 3) Solve with Newton Solver..." << std::endl;
COMISO::NewtonSolver nsolver; COMISO::NewtonSolver nsolver;
nsolver.set_verbosity(15);
Eigen::SparseMatrix<double> Ad = A.cast<double>(); Eigen::SparseMatrix<double> Ad = A.cast<double>();
Eigen::VectorXd bd = b.cast<double>(); Eigen::VectorXd bd = b.cast<double>();
{
Debug::ScopedOutputLevel output_lvl(0); // disable output for solve method
nsolver.solve(&problem, Ad, bd); nsolver.solve(&problem, Ad, bd);
}
std::cout << "---------- 4) Print solution..." << std::endl; std::cout << "---------- 4) Print solution..." << std::endl;
std::cout << std::setprecision(100); std::cout << std::setprecision(100);
......
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