From d61174f15a0061bf4e1f82bc2322b83c182563dd Mon Sep 17 00:00:00 2001 From: Sean McGovern Date: Tue, 13 Sep 2022 23:23:52 +0000 Subject: [PATCH] #1941: modify termination.cc --- src/vt/termination/termination.cc | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/vt/termination/termination.cc b/src/vt/termination/termination.cc index 96c0a1cfa9..1695707270 100644 --- a/src/vt/termination/termination.cc +++ b/src/vt/termination/termination.cc @@ -63,8 +63,9 @@ namespace vt { namespace term { TerminationDetector::TerminationDetector() : collective::tree::Tree(collective::tree::tree_cons_tag_t), - any_epoch_state_(any_epoch_sentinel, false, true, getNumChildren()), - hang_(no_epoch, true, false, getNumChildren()) + any_epoch_state_(any_epoch_sentinel, false, true, getNumChildren()), + hang_(no_epoch, true, false, getNumChildren()), + this_node_(theContext()->getNode()) { } /*static*/ void TerminationDetector::makeRootedHandler(TermMsg* msg) { @@ -112,7 +113,7 @@ void TerminationDetector::setLocalTerminated( any_epoch_state_.notifyLocalTerminated(local_terminated); if (local_terminated && !no_propagate) { - theTerm()->maybePropagate(); + maybePropagate(); } }