ginkgo-project / ginkgo

Numerical linear algebra software package
https://ginkgo-project.github.io/
BSD 3-Clause "New" or "Revised" License
384 stars 86 forks source link

Fix: remove early return in communicate #1605

Closed MarcelKoch closed 1 month ago

MarcelKoch commented 1 month ago

This PR removes the early return in the distributed::Matrix::communicate. It is not possible to return early there because the MPI calls have to be executed by all processes, even if a process might not send anything.

I've also removed an if in the matrix apply, since IMO it complicated the control flow a bit.