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

Reduce the DistributedBase interface #1606

Closed MarcelKoch closed 6 months ago

MarcelKoch commented 6 months ago

This PR reduces the interface changes to the DistributedBase interface. It removes the virtual function get_local_size. The only place where this was used was in the multigrid solver. There it has been replaced by using the run dispatch with every possible distributed Matrix type.

It also makes run easier to use by automatically deducing the const qualifier.

Note: although this is based on #1544, it can be rebased on develop and merged before.

MarcelKoch commented 6 months ago

@yhmtsai I've unified the shared_ptr implementation with the previous smart pointer implementation.

sonarcloud[bot] commented 6 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
No data about Duplication

See analysis details on SonarCloud