AdaptiveTimeSteppingEbos: put logTimer in detail namespace

This commit is contained in:
Arne Morten Kvarving 2023-03-01 13:47:00 +01:00
parent ebd53ee72d
commit b232613623
2 changed files with 12 additions and 4 deletions

View File

@ -2,6 +2,7 @@
*/ */
#include <config.h> #include <config.h>
#include <opm/simulators/timestepping/AdaptiveTimeSteppingEbos.hpp>
#include <opm/common/OpmLog/OpmLog.hpp> #include <opm/common/OpmLog/OpmLog.hpp>
#include <opm/input/eclipse/Units/Units.hpp> #include <opm/input/eclipse/Units/Units.hpp>
@ -10,6 +11,7 @@
#include <sstream> #include <sstream>
namespace Opm { namespace Opm {
namespace detail {
void logTimer(const AdaptiveSimulatorTimer& substepTimer) void logTimer(const AdaptiveSimulatorTimer& substepTimer)
{ {
@ -24,4 +26,5 @@ void logTimer(const AdaptiveSimulatorTimer& substepTimer)
OpmLog::info(ss.str()); OpmLog::info(ss.str());
} }
} } // namespace detail
} // namespace Opm

View File

@ -253,10 +253,15 @@ struct MinTimeStepBasedOnNewtonIterations<TypeTag, TTag::FlowTimeSteppingParamet
} // namespace Opm::Properties } // namespace Opm::Properties
namespace Opm { namespace Opm {
// AdaptiveTimeStepping
//--------------------- namespace detail {
void logTimer(const AdaptiveSimulatorTimer& substepTimer); void logTimer(const AdaptiveSimulatorTimer& substepTimer);
}
// AdaptiveTimeStepping
//---------------------
template<class TypeTag> template<class TypeTag>
class AdaptiveTimeSteppingEbos class AdaptiveTimeSteppingEbos
{ {
@ -430,7 +435,7 @@ namespace Opm {
// get current delta t // get current delta t
const double dt = substepTimer.currentStepLength() ; const double dt = substepTimer.currentStepLength() ;
if (timestepVerbose_) { if (timestepVerbose_) {
logTimer(substepTimer); detail::logTimer(substepTimer);
} }
SimulatorReportSingle substepReport; SimulatorReportSingle substepReport;