Skip to content
Snippets Groups Projects
Commit 7d16074e authored by Elias Pipping's avatar Elias Pipping
Browse files

[Algorit] Terminate time stepping properly

parent 6d1654f4
No related branches found
No related tags found
No related merge requests found
......@@ -39,15 +39,12 @@ template <class Factory, class UpdaterPair> class AdaptiveTimeStepper {
iterationWriter_ << std::endl;
}
// FIXME
bool reachedEnd() { return relativeTime_ > 1.0 - 1e-10; }
bool reachedEnd() { return relativeTime_ >= 1.0; }
bool coarsen() {
bool didCoarsen = false;
// FIXME: for a constant function, e.g., we will not only overstep but
// diverge
while (true) {
while (relativeTime_ + relativeTau_ < 1.0) {
R2_ = clonePair(R1_);
{
MyCoupledTimeStepper coupledTimeStepper(finalTime_, factory_, parset_,
......
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