From d72f1a10b8d0af3bb43a1b793df0a57ae142a341 Mon Sep 17 00:00:00 2001 From: Jacob Domagala Date: Tue, 24 Oct 2023 17:08:25 +0200 Subject: [PATCH] #2171: Update LBDataHolder's constructor to pupulate user_per_phase_json_ --- src/vt/vrt/collection/balance/lb_data_holder.cc | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/vt/vrt/collection/balance/lb_data_holder.cc b/src/vt/vrt/collection/balance/lb_data_holder.cc index 67361209ea..a2c1aa1d34 100644 --- a/src/vt/vrt/collection/balance/lb_data_holder.cc +++ b/src/vt/vrt/collection/balance/lb_data_holder.cc @@ -370,6 +370,13 @@ LBDataHolder::LBDataHolder(nlohmann::json const& j) } } } + + auto userDefined = phase["user_defined"]; + if(!userDefined.empty()){ + user_per_phase_json_[phase] = std::make_shared(); + *(user_per_phase_json_[phase]) = userDefined; + } + } }