From 4af4e420c8d56378850cec68911c6553a5289315 Mon Sep 17 00:00:00 2001 From: amartyads Date: Wed, 6 Nov 2024 14:42:33 +0100 Subject: [PATCH 1/2] fix now that ls1 logger is unique_ptr --- coupling/python-binding/mamico.cpp | 2 +- coupling/scenario/CouetteScenario.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/coupling/python-binding/mamico.cpp b/coupling/python-binding/mamico.cpp index fb42a5737..02a97f0cb 100644 --- a/coupling/python-binding/mamico.cpp +++ b/coupling/python-binding/mamico.cpp @@ -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::Info); #if (COUPLING_MD_PARALLEL == COUPLING_MD_YES) global_log->set_mpi_output_root(0); #endif diff --git a/coupling/scenario/CouetteScenario.h b/coupling/scenario/CouetteScenario.h index 6d589f7d3..eb6b2edfb 100644 --- a/coupling/scenario/CouetteScenario.h +++ b/coupling/scenario/CouetteScenario.h @@ -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::Info);; // Info #if (COUPLING_MD_PARALLEL == COUPLING_MD_YES) global_log->set_mpi_output_root(0); #endif From d59464c947e8167f3edbd143886f2ad2aeda9bbf Mon Sep 17 00:00:00 2001 From: amartyads Date: Wed, 6 Nov 2024 15:32:53 +0100 Subject: [PATCH 2/2] make default error --- coupling/python-binding/mamico.cpp | 2 +- coupling/scenario/CouetteScenario.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/coupling/python-binding/mamico.cpp b/coupling/python-binding/mamico.cpp index 02a97f0cb..be6dc9bc2 100644 --- a/coupling/python-binding/mamico.cpp +++ b/coupling/python-binding/mamico.cpp @@ -182,7 +182,7 @@ int initMPI() { delete[] argv; MPI_Comm_rank(MPI_COMM_WORLD, &rank); #if defined(LS1_MARDYN) - Log::global_log = std::make_unique(Log::Info); + Log::global_log = std::make_unique(Log::Error); //Log::Info #if (COUPLING_MD_PARALLEL == COUPLING_MD_YES) global_log->set_mpi_output_root(0); #endif diff --git a/coupling/scenario/CouetteScenario.h b/coupling/scenario/CouetteScenario.h index eb6b2edfb..c5f0d9156 100644 --- a/coupling/scenario/CouetteScenario.h +++ b/coupling/scenario/CouetteScenario.h @@ -90,7 +90,7 @@ class CouetteScenario : public Scenario { * @brief initialises everthing necessary for the test */ void init() override { #if defined(LS1_MARDYN) - Log::global_log = std::make_unique(Log::Info);; // Info + Log::global_log = std::make_unique(Log::Error);; //Log::Info #if (COUPLING_MD_PARALLEL == COUPLING_MD_YES) global_log->set_mpi_output_root(0); #endif