Skip to content

Commit 4b2831b

Browse files
committed
resize atoms_lookup after adding a new cluster
1 parent b04f8c5 commit 4b2831b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

vpr/src/pack/re_cluster_util.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,11 @@ bool start_new_cluster_for_mol(t_pack_molecule* molecule,
184184
pb->name = vtr::strdup(new_name.c_str());
185185
clb_index = cluster_ctx.clb_nlist.create_block(new_name.c_str(), pb, type);
186186
helper_ctx.total_clb_num++;
187+
188+
if (helper_ctx.atoms_lookup.size() < helper_ctx.total_clb_num) {
189+
helper_ctx.atoms_lookup.resize(helper_ctx.total_clb_num);
190+
}
191+
187192
int molecule_size = get_array_size_of_molecule(molecule);
188193
update_cluster_pb_stats(molecule, molecule_size, clb_index, true);
189194

0 commit comments

Comments
 (0)