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.
1 parent 19950c1 commit 255f8c0Copy full SHA for 255f8c0
src/grt/src/cugr/src/GridGraph.cpp
@@ -228,6 +228,19 @@ GridGraph::GridGraph(const Design* design,
228
}
229
230
231
+
232
+ // Apply user-defined capacity adjustment
233
+ for (int layer_index = 0; layer_index < num_layers_; layer_index++) {
234
+ const float adjustment = design->getLayer(layer_index).getAdjustment();
235
+ if (adjustment != 0.0) {
236
+ for (size_t x = 0; x < x_size_; x++) {
237
+ for (size_t y = 0; y < y_size_; y++) {
238
+ graph_edges_[layer_index][x][y].capacity
239
+ = graph_edges_[layer_index][x][y].capacity * (1.0 - adjustment);
240
+ }
241
242
243
244
245
246
IntervalT GridGraph::rangeSearchGridlines(const int dimension,
0 commit comments