Skip to content

Commit 9017ac1

Browse files
resize node lookup for CHANX nodes in RR graph serializer
1 parent 9297ad1 commit 9017ac1

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

libs/librrgraph/src/io/rr_graph_uxsdcxx_serializer.h

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1848,16 +1848,11 @@ class RrGraphSerializer final : public uxsd::RrGraphBase<RrGraphContextTypes> {
18481848

18491849
/* Alloc the lookup table */
18501850
for (e_rr_type rr_type : RR_TYPES) {
1851-
if (rr_type == e_rr_type::CHANX) {
1852-
rr_graph_builder.node_lookup().resize_nodes(grid_.get_num_layers(), grid_.height(), grid_.width(), rr_type, NUM_2D_SIDES);
1853-
} else {
1854-
rr_graph_builder.node_lookup().resize_nodes(grid_.get_num_layers(), grid_.width(), grid_.height(), rr_type, NUM_2D_SIDES);
1855-
}
1851+
rr_graph_builder.node_lookup().resize_nodes(grid_.get_num_layers(), grid_.width(), grid_.height(), rr_type, NUM_2D_SIDES);
18561852
}
18571853

18581854
/* Add the correct node into the vector */
1859-
for (size_t inode = 0; inode < rr_nodes_->size(); inode++) {
1860-
auto node = (*rr_nodes_)[inode];
1855+
for (const t_rr_node& node : *rr_nodes_) {
18611856
rr_graph_builder.add_node_to_all_locs(node.id());
18621857
}
18631858
}

0 commit comments

Comments
 (0)