Skip to content

Commit

Permalink
#708: Add missing fallback case
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Miller authored and lifflander committed Apr 20, 2020
1 parent 9a76f5c commit ead6dd2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vt/vrt/collection/balance/elm_stats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@ TimeType ElementStats::getLoad(PhaseType const& phase) const {
}

TimeType ElementStats::getLoad(PhaseType phase, SubphaseType subphase) const {
if (subphase == no_subphase)
return getLoad(phase);

vtAssert(phase_timings_.size() > phase, "Must have phase");
auto const& subphase_loads = subphase_timings_.at(phase);

Expand Down

0 comments on commit ead6dd2

Please sign in to comment.