Skip to content

Commit b876cda

Browse files
committed
FlatRecon: Continue if only 1 atom of a mol provided in fplace
1 parent 0cfbaba commit b876cda

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

vpr/src/analytical_place/analytical_placement_flow.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ static void convert_flat_to_partial_placement(const FlatPlacementInfo& flat_plac
9999
float current_loc_layer = flat_placement_info.blk_layer[atom_blk_id];
100100
int current_loc_sub_tile = flat_placement_info.blk_sub_tile[atom_blk_id];
101101
if (found_valid_atom) {
102+
if (current_loc_x == -1 || current_loc_y == -1)
103+
continue;
102104
if (current_loc_x != atom_loc_x || current_loc_y != atom_loc_y || current_loc_layer != atom_loc_layer || current_loc_sub_tile != atom_loc_sub_tile)
103105
VPR_FATAL_ERROR(VPR_ERROR_AP,
104106
"Molecule of ID %zu contains atom %s (ID: %zu) with a location (%g, %g, layer: %g, subtile: %d) "

0 commit comments

Comments
 (0)