Skip to content

Commit

Permalink
#1934: Fix compilation issues after the PR rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
thearusable committed Sep 19, 2024
1 parent 26cf3b9 commit 4254d6d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/vt/vrt/collection/balance/lb_data_holder.cc
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ std::unique_ptr<nlohmann::json> LBDataHolder::toJson(PhaseType phase) const {
}

i = 0;
if (node_comm_.find(phase) != node_comm_.end()) {
if (node_comm_.contains(phase)) {
for (auto const& [key, volume] : node_comm_.at(phase)) {
j["communications"][i]["bytes"] = volume.bytes;
j["communications"][i]["messages"] = volume.messages;
Expand Down
4 changes: 2 additions & 2 deletions src/vt/vrt/collection/balance/model/raw_data.cc
Original file line number Diff line number Diff line change
Expand Up @@ -131,8 +131,8 @@ ElmUserDataType RawData::getUserData(ElementIDStruct object, PhaseOffset offset)

CommMapType RawData::getComm(PhaseOffset offset) const {
auto phase = getNumCompletedPhases() + offset.phases;
if (auto it = proc_comm_->find(phase); it != proc_comm_->end()) {
return it->second;
if (auto it = proc_comm_->find(phase); it != nullptr) {
return *it;
} else {
return CommMapType{};
}
Expand Down

0 comments on commit 4254d6d

Please sign in to comment.