From f1b75c6aa856dbde02bb72e61231fd35497cfbc4 Mon Sep 17 00:00:00 2001 From: Jonathan Lifflander Date: Fri, 12 Aug 2022 10:21:23 -0700 Subject: [PATCH] #1909: Fix startup bug --- src/vt/messaging/active.cc | 6 ++++-- src/vt/messaging/active.h | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/vt/messaging/active.cc b/src/vt/messaging/active.cc index f0f7785b00..97cf7ed0d5 100644 --- a/src/vt/messaging/active.cc +++ b/src/vt/messaging/active.cc @@ -152,13 +152,15 @@ ActiveMessenger::ActiveMessenger() }; } +void ActiveMessenger::initialize() { + comm_ = theContext()->getComm(); +} + void ActiveMessenger::startup() { auto const this_node = theContext()->getNode(); bare_handler_dummy_elm_id_for_lb_data_ = elm::ElmIDBits::createBareHandler(this_node); - comm_ = theContext()->getComm(); - #if vt_check_enabled(lblite) // Hook to collect LB data about objgroups thePhase()->registerHookCollective(phase::PhaseHook::DataCollection, [this]{ diff --git a/src/vt/messaging/active.h b/src/vt/messaging/active.h index 8fd8f7fcae..901803b43d 100644 --- a/src/vt/messaging/active.h +++ b/src/vt/messaging/active.h @@ -341,6 +341,7 @@ struct ActiveMessenger : runtime::component::PollableComponent std::string name() override { return "ActiveMessenger"; } void startup() override; + void initialize() override; /** * \brief Mark a message as a termination message.