diff --git a/bindings/AMPL/uno_ampl.cpp b/bindings/AMPL/uno_ampl.cpp index c9c9393f..d2ca25b6 100644 --- a/bindings/AMPL/uno_ampl.cpp +++ b/bindings/AMPL/uno_ampl.cpp @@ -46,8 +46,6 @@ namespace uno { Uno::print_optimization_summary(options, result); // std::cout << "memory_allocation_amount = " << memory_allocation_amount << '\n'; } - - Level Logger::level = INFO; } // namespace int main(int argc, char* argv[]) { diff --git a/uno/Uno.cpp b/uno/Uno.cpp index ce725d3e..be412481 100644 --- a/uno/Uno.cpp +++ b/uno/Uno.cpp @@ -21,6 +21,8 @@ namespace uno { max_iterations(options.get_unsigned_int("max_iterations")), time_limit(options.get_double("time_limit")) { } + + Level Logger::level = INFO; Result Uno::solve(const Model& model, Iterate& current_iterate, const Options& options) { std::cout << "Problem " << model.name << '\n' << model.number_variables << " variables, " << model.number_constraints << " constraints\n\n"; diff --git a/unotest/unotest.cpp b/unotest/unotest.cpp index 920ce138..953d2e0c 100644 --- a/unotest/unotest.cpp +++ b/unotest/unotest.cpp @@ -7,10 +7,6 @@ #include #include "tools/Logger.hpp" -namespace uno { - Level Logger::level = INFO; -} // namespace - // https://www.eriksmistad.no/getting-started-with-google-test-on-ubuntu/ int main(int argc, char **argv) { #if defined(HAS_MPI) && defined(MUMPS_PARALLEL)