Skip to content

Commit

Permalink
#130: render: remove unused code
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Dec 11, 2024
1 parent 7a02449 commit 15df483
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 49 deletions.
38 changes: 0 additions & 38 deletions src/vt-tv/api/info.h
Original file line number Diff line number Diff line change
Expand Up @@ -368,44 +368,6 @@ struct Info {
return rank_qois;
}

// /**
// * \brief Get QOI of all ranks at given phase
// *
// * \return a map of QOI per rank
// */
// template <typename T = double>
// std::unordered_map<ElementIDType, T>
// getAllRankQOIAtPhase(PhaseType phase, std::string const& rank_qoi) const {
// std::unordered_map<ElementIDType, T> rank_qois;

// if (hasRankUserDefined(rank_qoi)) {
// auto const& test_value = getFirstRankUserDefined(rank_qoi);
// for (uint64_t rank_id = 0; rank_id < ranks_.size(); rank_id++) {
// auto const& rank = ranks_.at(rank_id);
// if (std::holds_alternative<double>(test_value)) {
// rank_qois.emplace(
// phase, static_cast<T>(
// std::get<double>(getRankUserDefined(rank, phase, rank_qoi))
// )
// );
// } else if (std::holds_alternative<int>(test_value)) {
// rank_qois.emplace(
// phase, static_cast<T>(
// std::get<int>(getRankUserDefined(rank, phase, rank_qoi))
// )
// );
// }
// }
// } else {
// auto qoi_getter = getRankQOIGetter<T>(rank_qoi);
// for (auto const& [rank_id, rank] : this->ranks_) {
// rank_qois.emplace(rank_id, qoi_getter(rank, phase, no_lb_iter));
// }
// }

// return rank_qois;
// }

/* -------------------------------- Object Getters -------------------------------- */

/**
Expand Down
11 changes: 0 additions & 11 deletions src/vt-tv/render/render.cc
Original file line number Diff line number Diff line change
Expand Up @@ -288,17 +288,6 @@ std::pair<double, double> Render::computeRankQOIRange_() {
return std::make_pair(rq_min, rq_max);
}

// double Render::computeRankQOIAverage_(PhaseType phase, std::string qoi) {
// // Initialize rank QOI range attributes
// double rq_sum = 0.0;
// auto const& rank_loads_at_phase =
// this->info_.getAllRankQOIAtPhase<double>(phase, qoi);
// for (auto const& [rank, rank_load] : rank_loads_at_phase) {
// rq_sum += rank_load;
// }
// return rq_sum / rank_loads_at_phase.size();
// }

std::map<NodeType, std::unordered_map<ElementIDType, ObjectWork>>
Render::createObjectMapping_(PhaseType phase, LBIterationType lb_iter) {
std::map<NodeType, std::unordered_map<ElementIDType, ObjectWork>>
Expand Down

0 comments on commit 15df483

Please sign in to comment.