ginkgo-project / ginkgo

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

Fix: remove early return in communicate #1605

Closed MarcelKoch closed 7 months ago

MarcelKoch commented 7 months 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.