@@ -195,8 +195,8 @@ void NetCostHandler::alloc_and_load_chan_w_factors_for_place_cost_(float place_c
195
195
* place_cost_exp power -- numbers other than one mean this is no *
196
196
* longer a simple "average number of tracks"; it is some power of *
197
197
* that, allowing greater penalization of narrow channels. */
198
- for (int high = 0 ; high < (int )grid_height; high++) {
199
- for (int low = 0 ; low <= high; low++) {
198
+ for (int high = - 1 ; high < (int )grid_height; high++) {
199
+ for (int low = - 1 ; low <= high; low++) {
200
200
/* Since we will divide the wiring cost by the average channel *
201
201
* capacity between high and low, having only 0 width channels *
202
202
* will result in infinite wiring capacity normalization *
@@ -225,8 +225,8 @@ void NetCostHandler::alloc_and_load_chan_w_factors_for_place_cost_(float place_c
225
225
226
226
/* Now compute the inverse of the average number of tracks per channel
227
227
* between high and low. Take to specified power. */
228
- for (int high = 0 ; high < (int )grid_width; high++) {
229
- for (int low = 0 ; low <= high; low++) {
228
+ for (int high = - 1 ; high < (int )grid_width; high++) {
229
+ for (int low = - 1 ; low <= high; low++) {
230
230
/* Since we will divide the wiring cost by the average channel *
231
231
* capacity between high and low, having only 0 width channels *
232
232
* will result in infinite wiring capacity normalization *
0 commit comments