Skip to content

Commit d528a59

Browse files
committed
cts: define the cluster size directly when it is not user-defined
Signed-off-by: luis201420 <[email protected]>
1 parent a770a97 commit d528a59

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/cts/src/CtsOptions.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,11 @@ void CtsOptions::inDbInstCreate(odb::dbInst* inst, odb::dbRegion* region)
3131

3232
void CtsOptions::limitSinkClusteringSizes(unsigned limit)
3333
{
34-
setSinkClusteringSize(std::min(limit, sinkClustersSize_));
34+
if (sinkClustersSizeSet_) {
35+
setSinkClusteringSize(std::min(limit, sinkClustersSize_));
36+
return;
37+
}
38+
sinkClustersSize_ = limit;
3539
}
3640

3741
void CtsOptions::recordBuffer(odb::dbMaster* master, MasterType type)

0 commit comments

Comments
 (0)