double instead of int

This commit is contained in:
David Landa Marban committed 2025-02-18 13:58:27 +01:00
1 parent 61c20b8297
commit 2438ce2548
2 files changed
+4 -4

No files matched your search

@@ -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;
@@ -881,7 +881,7 @@ template<class TypeTag>
template<class Solver>
void
AdaptiveTimeStepping<TypeTag>::SubStepIteration<Solver>::
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<class TypeTag>
template<class Solver>
bool
AdaptiveTimeStepping<TypeTag>::SubStepIteration<Solver>::
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