optimad / bitpit

Open source library for scientific HPC
http://optimad.github.io/bitpit/
GNU Lesser General Public License v3.0
115 stars 34 forks source link

patchkernel: fix partitionig of empty patches #430

Closed andrea-iob closed 8 months ago

andrea-iob commented 8 months ago

Pull request #425 introduced support for partitioning empty patches with METIS. However, after the pull request was merged, we experienced some random deadlocks when try to partition empty patches. The reason is that, even if we are partitioning an empty patch, we still need to go through the whole preparation to make sure all internal data structures are properly initialized.