diff --git a/.gitignore b/.gitignore index 993c1e5..cf84dc2 100644 --- a/.gitignore +++ b/.gitignore @@ -16,6 +16,7 @@ __pycache__ *.pyc *.npz *.mtx +*.so junk build/* *egg-info diff --git a/README.rst b/README.rst index b209c41..db605ef 100644 --- a/README.rst +++ b/README.rst @@ -74,7 +74,7 @@ Enter the newly created 'QSW_MPI/dist' folder, which should contain the archive .. code-block:: - pip3 install qsw_mpi-0.0.1.tar.gz + pip3 install qsw_mpi-1.0.2.tar.gz Documentation ------------- diff --git a/qsw_mpi/MPI.py b/qsw_mpi/MPI.py index 198857a..086121b 100644 --- a/qsw_mpi/MPI.py +++ b/qsw_mpi/MPI.py @@ -883,8 +883,8 @@ def __init__( self.H_loc_indices = H_loc.indices self.H_loc_data = H_loc.data else: - self.H_loc_indptr = np.zeros(H.shape[0] + 1, dtype = np.int) - self.H_loc_indices = np.zeros(1, dtype = np.int) + self.H_loc_indptr = np.zeros(H.shape[0] + 1, dtype = np.int64) + self.H_loc_indices = np.zeros(1, dtype = np.int64) self.H_loc_data = np.zeros(1, dtype = np.complex128) self.vsets = vsets @@ -1015,9 +1015,9 @@ def save_vsets(self, filename, vsetsname, action = 'a'): dset = f.create_dataset( vsetsname + '/' + str(i), (len(v),), - dtype = np.int) + dtype = np.int64) - dset[:] = np.array(v, dtype = np.int) + dset[:] = np.array(v, dtype = np.int64) f.close() diff --git a/qsw_mpi/operators.py b/qsw_mpi/operators.py index 56f1953..d6d9317 100644 --- a/qsw_mpi/operators.py +++ b/qsw_mpi/operators.py @@ -20,7 +20,7 @@ import qsw_mpi.foperators as foperators import copy -I = np.complex(0,1) +I = 1j def check_indices(G): """ diff --git a/requirements.txt b/requirements.txt index feb38fc..7aec65d 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,7 @@ +""" run +sudo apt install make openmpi-bin gfortran openmpi-common openmpi-doc libopenmpi-dev mpich -y +""" +wheel numpy scipy mpi4py