diff --git a/src/vt/vrt/collection/balance/stats_data.cc b/src/vt/vrt/collection/balance/stats_data.cc index 5ae0b53d66..29485986ae 100644 --- a/src/vt/vrt/collection/balance/stats_data.cc +++ b/src/vt/vrt/collection/balance/stats_data.cc @@ -179,7 +179,7 @@ std::unique_ptr StatsData::toJson(PhaseType phase) const { auto etype = task["entity"]["type"]; vtAssertExpr(time.is_number()); vtAssertExpr(node.is_number()); - vtAssertExpr(node == theContext()->getNode()); + vtAssertExpr(node == this_node); if (etype == "object") { auto object = task["entity"]["id"]; @@ -192,7 +192,7 @@ std::unique_ptr StatsData::toJson(PhaseType phase) const { home = home_json; } - auto elm = ElementIDStruct{object, home, this_node}; + auto elm = ElementIDStruct{object, home, node}; sd->node_data_[id][elm] = time; if (