Skip to content

Commit

Permalink
#2171: Update LBDataHolder's constructor to pupulate user_per_phase_j…
Browse files Browse the repository at this point in the history
…son_
  • Loading branch information
JacobDomagala committed Oct 24, 2023
1 parent 6b7d21a commit d54ee9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/vt/vrt/collection/balance/lb_data_holder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -370,6 +370,12 @@ LBDataHolder::LBDataHolder(nlohmann::json const& j)
}
}
}

if (phase.find("user_defined") != phase.end()) {
auto userDefined = phase["user_defined"];
user_per_phase_json_[phase] = std::make_shared<nlohmann::json>();
*(user_per_phase_json_[phase]) = userDefined;
}
}
}

Expand Down
1 change: 0 additions & 1 deletion tests/unit/collection/test_lb.extended.cc
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@
#include "data_message.h"

#include "vt/phase/phase_manager.h"
#include "vt/timing/timing_type.h"
#include "vt/vrt/collection/manager.h"
#include "vt/vrt/collection/balance/lb_data_holder.h"
#include "vt/vrt/collection/balance/node_lb_data.h"
Expand Down

0 comments on commit d54ee9b

Please sign in to comment.