Skip to content

Commit

Permalink
fix now that ls1 logger is unique_ptr
Browse files Browse the repository at this point in the history
  • Loading branch information
amartyads committed Nov 6, 2024
1 parent 5b5aa1d commit 4af4e42
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion coupling/python-binding/mamico.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ int initMPI() {
delete[] argv;
MPI_Comm_rank(MPI_COMM_WORLD, &rank);
#if defined(LS1_MARDYN)
global_log = new Log::Logger(Log::Error);
Log::global_log = std::make_unique<Log::Logger>(Log::Info);
#if (COUPLING_MD_PARALLEL == COUPLING_MD_YES)
global_log->set_mpi_output_root(0);
#endif
Expand Down
2 changes: 1 addition & 1 deletion coupling/scenario/CouetteScenario.h
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ class CouetteScenario : public Scenario {
* @brief initialises everthing necessary for the test */
void init() override {
#if defined(LS1_MARDYN)
global_log = new Log::Logger(Log::Error); // Info
Log::global_log = std::make_unique<Log::Logger>(Log::Info);; // Info
#if (COUPLING_MD_PARALLEL == COUPLING_MD_YES)
global_log->set_mpi_output_root(0);
#endif
Expand Down

0 comments on commit 4af4e42

Please sign in to comment.