mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
AdaptiveTimeSteppingEbos: put logTimer in detail namespace
This commit is contained in:
parent
ebd53ee72d
commit
b232613623
@ -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
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user