Minor fix of integer type handling

This commit is contained in:
Atsushi Togo 2021-02-22 14:35:02 +09:00
parent 38ef33df25
commit 0eef874257
2 changed files with 24 additions and 23 deletions

View File

@ -73,7 +73,7 @@ py_set_permutation_symmetry_compact_fc3(PyObject *self, PyObject *args);
static PyObject * py_set_permutation_symmetry_fc3(PyObject *self,
PyObject *args);
static PyObject * py_transpose_compact_fc3(PyObject *self, PyObject *args);
static PyObject * py_get_neighboring_gird_points(PyObject *self, PyObject *args);
static PyObject * py_get_neighboring_grid_points(PyObject *self, PyObject *args);
static PyObject * py_set_integration_weights(PyObject *self, PyObject *args);
static PyObject *
py_tpl_get_triplets_reciprocal_mesh_at_q(PyObject *self, PyObject *args);
@ -193,7 +193,7 @@ static PyMethodDef _phono3py_methods[] = {
METH_VARARGS,
"Transpose compact fc3"},
{"neighboring_grid_points",
(PyCFunction)py_get_neighboring_gird_points,
(PyCFunction)py_get_neighboring_grid_points,
METH_VARARGS,
"Neighboring grid points by relative grid addresses"},
{"integration_weights",
@ -1439,7 +1439,7 @@ static PyObject * py_transpose_compact_fc3(PyObject *self, PyObject *args)
Py_RETURN_NONE;
}
static PyObject * py_get_neighboring_gird_points(PyObject *self, PyObject *args)
static PyObject * py_get_neighboring_grid_points(PyObject *self, PyObject *args)
{
PyArrayObject *py_relative_grid_points;
PyArrayObject *py_grid_points;

View File

@ -830,26 +830,27 @@ class Conductivity_RTA(Conductivity):
dtype='double', order='C')
import phono3py._phono3py as phono3c
if sigma is None:
phono3c.pp_collision(collisions,
thm.get_tetrahedra(),
self._frequencies,
self._eigenvectors,
triplets_at_q,
weights_at_q,
self._grid_address,
bz_map,
self._mesh,
fc3,
svecs,
multiplicity,
masses,
p2s,
s2p,
band_indices,
self._temperatures,
self._is_N_U * 1,
symmetrize_fc3_q,
self._cutoff_frequency)
phono3c.pp_collision(
collisions,
np.array(thm.get_tetrahedra(), dtype='intc', order='C'),
self._frequencies,
self._eigenvectors,
triplets_at_q,
weights_at_q,
self._grid_address,
bz_map,
self._mesh,
fc3,
svecs,
multiplicity,
masses,
p2s,
s2p,
band_indices,
self._temperatures,
self._is_N_U * 1,
symmetrize_fc3_q,
self._cutoff_frequency)
else:
if self._sigma_cutoff is None:
sigma_cutoff = -1