From 2438ce25482e28f34df7d4bf2c618b826626100f Mon Sep 17 00:00:00 2001 From: David Landa Marban Date: Tue, 18 Feb 2025 13:58:27 +0100 Subject: [PATCH] double instead of int --- opm/simulators/timestepping/AdaptiveTimeStepping.hpp | 4 ++-- opm/simulators/timestepping/AdaptiveTimeStepping_impl.hpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/opm/simulators/timestepping/AdaptiveTimeStepping.hpp b/opm/simulators/timestepping/AdaptiveTimeStepping.hpp index 7eb6d86634..2f6d4189e6 100644 --- a/opm/simulators/timestepping/AdaptiveTimeStepping.hpp +++ b/opm/simulators/timestepping/AdaptiveTimeStepping.hpp @@ -149,9 +149,9 @@ private: private: bool checkContinueOnUnconvergedSolution_(double dt) const; void checkTimeStepMaxRestartLimit_(const int restarts) const; - void checkTimeStepMinLimit_(const int new_time_step) const; + void checkTimeStepMinLimit_(const double new_time_step) const; void chopTimeStep_(const double new_time_step); - bool chopTimeStepOrCloseFailingWells_(const int new_time_step); + bool chopTimeStepOrCloseFailingWells_(const double new_time_step); boost::posix_time::ptime currentDateTime_() const; int getNumIterations_(const SimulatorReportSingle &substep_report) const; double growthFactor_() const; diff --git a/opm/simulators/timestepping/AdaptiveTimeStepping_impl.hpp b/opm/simulators/timestepping/AdaptiveTimeStepping_impl.hpp index d11d60bbb6..e80a5984c6 100644 --- a/opm/simulators/timestepping/AdaptiveTimeStepping_impl.hpp +++ b/opm/simulators/timestepping/AdaptiveTimeStepping_impl.hpp @@ -881,7 +881,7 @@ template template void AdaptiveTimeStepping::SubStepIteration:: -checkTimeStepMinLimit_(const int new_time_step) const +checkTimeStepMinLimit_(const double new_time_step) const { // If we have restarted (i.e. cut the timestep) too // much, we have failed and throw an exception. @@ -918,7 +918,7 @@ template template bool AdaptiveTimeStepping::SubStepIteration:: -chopTimeStepOrCloseFailingWells_(const int new_time_step) +chopTimeStepOrCloseFailingWells_(const double new_time_step) { bool wells_shut = false; // We are below the threshold, and will check if there are any