Compatibility with mpi4py <= 1.3.1.
This commit is contained in:
parent
8d87184330
commit
1892b77a46
3 changed files with 13 additions and 1 deletions
|
@ -105,7 +105,8 @@ def sht(jobtype, geom_info ginfo, alm_info ainfo, double[:, :, ::1] input,
|
|||
from mpi4py import MPI
|
||||
if not isinstance(comm, MPI.Comm):
|
||||
raise TypeError('comm must be an mpi4py communicator')
|
||||
comm_ptr = <void*><size_t>MPI._addressof(comm)
|
||||
from .libsharp_mpi import _addressof
|
||||
comm_ptr = <void*><size_t>_addressof(comm)
|
||||
with nogil:
|
||||
r = sharp_execute_mpi_maybe (
|
||||
comm_ptr, jobtype_i,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue