Skip to content

Commit ccebf63

Browse files
small fix
1 parent bbef250 commit ccebf63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/osp/coarser/Sarkar/Sarkar.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ std::vector<std::size_t> Sarkar<Graph_t_in, Graph_t_out>::homogeneousMerge(const
11791179
std::size_t bestScore = 0U;
11801180
std::size_t bestBins = number / minSize;
11811181
for (std::size_t bins = std::max( number / maxSize, static_cast<std::size_t>(2U)); bins <= number / minSize; ++bins) {
1182-
if (number % bins == 0U) {
1182+
if (number % bins == 0U && number != bins) {
11831183
return std::vector<std::size_t>(bins, number / bins);
11841184
}
11851185

0 commit comments

Comments
 (0)