Skip to content
Snippets Groups Projects
Commit a8bc90fe authored by wenqing's avatar wenqing
Browse files

[TimeStepper/TimeLoop] Adjusted the place where to check the stablized stepping

parent 74bdb232
No related branches found
No related tags found
No related merge requests found
......@@ -387,6 +387,8 @@ double TimeLoop::computeTimeStepping(const double prev_dt, double& t,
dt = _end_time - t;
}
dt = NumLib::possiblyClampDtToNextFixedTime(t, dt,
_output->getFixedOutputTimes());
// Check whether the time stepping is stabilized
if (std::fabs(dt - prev_dt) < std::numeric_limits<double>::epsilon())
{
......@@ -406,9 +408,6 @@ double TimeLoop::computeTimeStepping(const double prev_dt, double& t,
}
}
dt = NumLib::possiblyClampDtToNextFixedTime(t, dt,
_output->getFixedOutputTimes());
// Reset the time step with the minimum step size, dt
// Update the solution of the previous time step.
for (std::size_t i = 0; i < _per_process_data.size(); i++)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment