IMTEK-Simulation / NuMPI

Utilities for MPI-parallel numerical calculations with Python
MIT License
2 stars 1 forks source link

Why is `mpitype` included in the Allreduce statements in `ParallelNumpy` #3

Closed pastewka closed 5 years ago

pastewka commented 5 years ago

The sum method of ParallelNumpy has the following statement:

self.comm.Allreduce([locresult,mpitype],[result,mpitype],op = MPI.SUM)

Why is the mpitype passed there? Also, I don't see how Allreduce can receive into a Python list, those should be numpy arrays.

sannant commented 5 years ago

See issue #1

pastewka commented 5 years ago

Duplicate of #1, closing this an reopened #1