Skip to content

Commit

Permalink
Resize subphase array to match phases when no work gets recorded
Browse files Browse the repository at this point in the history
  • Loading branch information
Phil Miller authored and lifflander committed Jun 10, 2020
1 parent 7c81c34 commit a822228
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/vt/vrt/collection/balance/elm_stats.cc
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ void ElementStats::updatePhase(PhaseType const& inc) {

cur_phase_ += inc;
phase_timings_.resize(cur_phase_ + 1);
subphase_timings_.resize(cur_phase_ + 1);
}

PhaseType ElementStats::getPhase() const {
Expand Down

0 comments on commit a822228

Please sign in to comment.