Skip to content

Commit

Permalink
@tbittar remarks
Browse files Browse the repository at this point in the history
  • Loading branch information
a-zakir committed Dec 7, 2023
1 parent 707b6e5 commit 9402964
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/cpp/benders/benders_mpi/BendersMPI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ void BendersMpi::free() {
*/
void BendersMpi::Run() {
PreRunInitialization();
mathLoggerDriver_->write_header();
while (!_data.stop) {
Timer timer_master;
++_data.it;
Expand Down
10 changes: 5 additions & 5 deletions src/cpp/benders/factories/include/LoggerFactories.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class FileAndStdoutLoggerFactory {

class MathLoggerFactory {
private:
MathLoggerDriver math_Logger_driver;
MathLoggerDriver math_logger_driver;

public:
explicit MathLoggerFactory(
Expand All @@ -45,18 +45,18 @@ class MathLoggerFactory {
if (math_logs_file_path != "") {
auto math_logger_file =
std::make_shared<MathLoggerFile>(method, math_logs_file_path);
math_Logger_driver.add_logger(math_logger_file);
math_logger_driver.add_logger(math_logger_file);
}

if (console_log) {
auto math_Logger_ostream = std::make_shared<MathLoggerOstream>(method);
auto math_logger_ostream = std::make_shared<MathLoggerOstream>(method);

math_Logger_driver.add_logger(math_Logger_ostream);
math_logger_driver.add_logger(math_logger_ostream);
}
}
explicit MathLoggerFactory() = default;
std::shared_ptr<MathLoggerDriver> get_logger() {
return std::make_shared<MathLoggerDriver>(math_Logger_driver);
return std::make_shared<MathLoggerDriver>(math_logger_driver);
}
};
#endif // ANTARESXPANSION_LOGGERFACTORIES_H

0 comments on commit 9402964

Please sign in to comment.