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 23, 2024
1 parent 77b8fb9 commit 3bc5550
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 @@ -257,7 +257,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 3bc5550

Please sign in to comment.