From b24765a4877e63860b9b127142bd69336d389038 Mon Sep 17 00:00:00 2001 From: Jonathan Lifflander Date: Wed, 16 Jan 2019 15:32:01 -0800 Subject: [PATCH] #251 termination: fix bug in epoch resolved incorrectly for DS --- src/vt/termination/term_window.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/vt/termination/term_window.cc b/src/vt/termination/term_window.cc index 0328d930f0..e2f457feee 100644 --- a/src/vt/termination/term_window.cc +++ b/src/vt/termination/term_window.cc @@ -82,7 +82,11 @@ inline bool EpochWindow::isArchetypal(EpochType const& epoch) { bool EpochWindow::inWindow(EpochType const& epoch) const { vtAssertExpr(last_unresolved_epoch_ >= first_unresolved_epoch_); vtAssertExpr(initialized_); - return epoch < first_unresolved_epoch_; + if (first_unresolved_epoch_ == no_epoch) { + return false; + } else { + return epoch < first_unresolved_epoch_; + } } void EpochWindow::addEpoch(EpochType const& epoch) {