From ead6dd2a100a95b59f8985f87494ecf985c702cf Mon Sep 17 00:00:00 2001 From: Phil Miller Date: Thu, 16 Apr 2020 20:38:37 -0600 Subject: [PATCH] #708: Add missing fallback case --- src/vt/vrt/collection/balance/elm_stats.cc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/vt/vrt/collection/balance/elm_stats.cc b/src/vt/vrt/collection/balance/elm_stats.cc index e1495f88e0..e9dc10ace2 100644 --- a/src/vt/vrt/collection/balance/elm_stats.cc +++ b/src/vt/vrt/collection/balance/elm_stats.cc @@ -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);