We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 1959805 + 679a3b4 commit 43d4422Copy full SHA for 43d4422
vpr/src/draw/draw_basic.cpp
@@ -384,12 +384,14 @@ void draw_routing_costs(ezgl::renderer* g) {
384
auto& device_ctx = g_vpr_ctx.device();
385
auto& route_ctx = g_vpr_ctx.routing();
386
g->set_line_width(0);
387
-
+
388
VTR_ASSERT(!route_ctx.rr_node_route_inf.empty());
389
390
float min_cost = std::numeric_limits<float>::infinity();
391
float max_cost = -min_cost;
392
- vtr::vector<RRNodeId, float> rr_node_costs(0.);
393
+ size_t node_count = device_ctx.rr_graph.nodes().size();
394
+ vtr::vector<RRNodeId, float> rr_node_costs(node_count, 0.);
395
396
for (const RRNodeId inode : device_ctx.rr_graph.nodes()) {
397
float cost = 0.;
0 commit comments