From 5a34e48dd14ba022ade791d6a6fad703f4b34b9d Mon Sep 17 00:00:00 2001 From: Atsushi Togo Date: Mon, 22 Feb 2021 22:02:29 +0900 Subject: [PATCH] Minor fix of integer type handling --- phono3py/phonon3/fc3.py | 10 +++++++--- phono3py/phonon3/joint_dos.py | 2 +- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/phono3py/phonon3/fc3.py b/phono3py/phonon3/fc3.py index 92401242..cd025234 100644 --- a/phono3py/phonon3/fc3.py +++ b/phono3py/phonon3/fc3.py @@ -546,13 +546,17 @@ def show_drift_fc3(fc3, else: try: import phono3py._phono3py as phono3c - s2p_map = primitive.get_supercell_to_primitive_map() - p2s_map = primitive.get_primitive_to_supercell_map() - p2p_map = primitive.get_primitive_to_primitive_map() + s2p_map = primitive.s2p_map + p2s_map = primitive.p2s_map + p2p_map = primitive.p2p_map permutations = primitive.get_atomic_permutations() s2pp_map, nsym_list = get_nsym_list_and_s2pp(s2p_map, p2p_map, permutations) + permutations = np.array(permutations, dtype='int_', order='C') + s2pp_map = np.array(s2pp_map, dtype='int_') + p2s_map = np.array(p2s_map, dtype='int_') + nsym_list = np.array(nsym_list, dtype='int_') num_patom = fc3.shape[0] num_satom = fc3.shape[1] maxval1 = 0 diff --git a/phono3py/phonon3/joint_dos.py b/phono3py/phonon3/joint_dos.py index 5b0b63fe..1fc9b0bc 100644 --- a/phono3py/phonon3/joint_dos.py +++ b/phono3py/phonon3/joint_dos.py @@ -70,7 +70,7 @@ class JointDos(object): lapack_zheev_uplo='L'): self._grid_point = None - self._mesh = np.array(mesh, dtype='intc') + self._mesh = np.array(mesh, dtype='int_') self._primitive = primitive self._supercell = supercell self._fc2 = fc2