KarypisLab / METIS

METIS - Serial Graph Partitioning and Fill-reducing Matrix Ordering
Other
699 stars 138 forks source link

Incorrect part number with `nparts == 1` #49

Closed cedhub closed 1 year ago

cedhub commented 1 year ago

Looks like there is a bug in (at least) METIS_PartMeshDual(), leading the epart and npart vectors to contain 1s instead of 0s, with options[METIS_OPTION_NUMBERING] = 0. When nparts > 1, the vectors actually contain 0s and 1s.

I'm using version 5.1.0, along with Apple clang version 14.0.0.

Is this a normal behaviour ? If yes, I couldn't find it in the manual.

Thanks !

karypis commented 1 year ago

This was an unhandled corner case. It should be fixed. Please check.

cedhub commented 1 year ago

Now it works fine. Thank you !