From b232613623943fcb67b9362fd644af9e164a6bb1 Mon Sep 17 00:00:00 2001 From: Arne Morten Kvarving Date: Wed, 1 Mar 2023 13:47:00 +0100 Subject: [PATCH] AdaptiveTimeSteppingEbos: put logTimer in detail namespace --- .../timestepping/AdaptiveTimeSteppingEbos.cpp | 5 ++++- .../timestepping/AdaptiveTimeSteppingEbos.hpp | 11 ++++++++--- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/opm/simulators/timestepping/AdaptiveTimeSteppingEbos.cpp b/opm/simulators/timestepping/AdaptiveTimeSteppingEbos.cpp index 611dd8c18..72d8ab4da 100644 --- a/opm/simulators/timestepping/AdaptiveTimeSteppingEbos.cpp +++ b/opm/simulators/timestepping/AdaptiveTimeSteppingEbos.cpp @@ -2,6 +2,7 @@ */ #include +#include #include #include @@ -10,6 +11,7 @@ #include namespace Opm { +namespace detail { void logTimer(const AdaptiveSimulatorTimer& substepTimer) { @@ -24,4 +26,5 @@ void logTimer(const AdaptiveSimulatorTimer& substepTimer) OpmLog::info(ss.str()); } -} +} // namespace detail +} // namespace Opm diff --git a/opm/simulators/timestepping/AdaptiveTimeSteppingEbos.hpp b/opm/simulators/timestepping/AdaptiveTimeSteppingEbos.hpp index 80b0f73c5..dd11de3db 100644 --- a/opm/simulators/timestepping/AdaptiveTimeSteppingEbos.hpp +++ b/opm/simulators/timestepping/AdaptiveTimeSteppingEbos.hpp @@ -253,10 +253,15 @@ struct MinTimeStepBasedOnNewtonIterations class AdaptiveTimeSteppingEbos { @@ -430,7 +435,7 @@ namespace Opm { // get current delta t const double dt = substepTimer.currentStepLength() ; if (timestepVerbose_) { - logTimer(substepTimer); + detail::logTimer(substepTimer); } SimulatorReportSingle substepReport;