Skip to content

Updated some requirements and some minor fixes #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ __pycache__
*.pyc
*.npz
*.mtx
*.so
junk
build/*
*egg-info
Expand Down
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
-------------
Expand Down
8 changes: 4 additions & 4 deletions qsw_mpi/MPI.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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()

2 changes: 1 addition & 1 deletion qsw_mpi/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import qsw_mpi.foperators as foperators
import copy

I = np.complex(0,1)
I = 1j

def check_indices(G):
"""
Expand Down
4 changes: 4 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
""" run
sudo apt install make openmpi-bin gfortran openmpi-common openmpi-doc libopenmpi-dev mpich -y
"""
wheel
numpy
scipy
mpi4py
Expand Down