LIHPC-Computational-Geometry / coupe

the concurrent partitioner
https://LIHPC-Computational-Geometry.github.io/coupe/
Apache License 2.0
12 stars 3 forks source link

imbalance: fix divisions by zero #279

Closed hhirtz closed 1 year ago

hhirtz commented 1 year ago

If all weights are zero or if num_parts is zero, the return value is NaN. Let's return zero instead because why not it seems sensible.

Also add the fix to part-info.