Bad asserts in Coloquinte rough_legalizer.
* Bug: In Coloquinte::rough_legalizer, when running in debug mode, some assert where popping up. But, in normal mode the placer just went fine. So we assume they where too broad in their scope. Commented out.
This commit is contained in:
parent
f9ea7509df
commit
5e85757dea
|
@ -88,7 +88,7 @@ box<int_t> region_distribution::get_box(index_t x, index_t y, index_t x_cnt, ind
|
||||||
placement_area_.y_min + ( ((std::int64_t) (placement_area_.y_max - placement_area_.y_min)) * y ) / y_cnt,
|
placement_area_.y_min + ( ((std::int64_t) (placement_area_.y_max - placement_area_.y_min)) * y ) / y_cnt,
|
||||||
placement_area_.y_min + ( ((std::int64_t) (placement_area_.y_max - placement_area_.y_min)) * (y+1) ) / y_cnt
|
placement_area_.y_min + ( ((std::int64_t) (placement_area_.y_max - placement_area_.y_min)) * (y+1) ) / y_cnt
|
||||||
);
|
);
|
||||||
assert(not ret.empty());
|
//assert(not ret.empty());
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1008,7 +1008,7 @@ std::vector<region_distribution::movable_cell> region_distribution::export_sprea
|
||||||
index_t n = R.cell_references_.size();
|
index_t n = R.cell_references_.size();
|
||||||
float_t total_capacity = static_cast<float_t>(R.capacity());
|
float_t total_capacity = static_cast<float_t>(R.capacity());
|
||||||
box<float_t> surface = static_cast<box<float_t> >(get_box(x, y, x_regions_cnt(), y_regions_cnt()));
|
box<float_t> surface = static_cast<box<float_t> >(get_box(x, y, x_regions_cnt(), y_regions_cnt()));
|
||||||
assert(surface.x_max > surface.x_min and surface.y_max > surface.y_min);
|
//assert(surface.x_max > surface.x_min and surface.y_max > surface.y_min);
|
||||||
|
|
||||||
std::vector<legalizable_task<float_t> > x_cells, y_cells;
|
std::vector<legalizable_task<float_t> > x_cells, y_cells;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue