mirror of https://github.com/phonopy/phonopy.git
Bug fix of J32
This commit is contained in:
parent
1d7dc53d38
commit
443209e53c
|
@ -864,7 +864,7 @@ static double _J_31(const double omega,
|
|||
static double _J_32(const double omega,
|
||||
const double vertices_omegas[4])
|
||||
{
|
||||
return (1.0 +
|
||||
return (1.0 -
|
||||
_f(0, 3, omega, vertices_omegas) *
|
||||
_f(1, 3, omega, vertices_omegas) *
|
||||
_f(2, 3, omega, vertices_omegas) *
|
||||
|
|
|
@ -501,7 +501,7 @@ class TetrahedronMethod(object):
|
|||
4 / self._n_3())
|
||||
|
||||
def _J_32(self):
|
||||
return ((1.0 + self._f(0, 3) * self._f(1, 3) * self._f(2, 3) ** 2) /
|
||||
return ((1.0 - self._f(0, 3) * self._f(1, 3) * self._f(2, 3) ** 2) /
|
||||
4 / self._n_3())
|
||||
|
||||
def _J_33(self):
|
||||
|
|
|
@ -128,7 +128,7 @@ tetra_freqs = [[8.31845176, 8.69248151, 8.78939432, 8.66179133],
|
|||
[8.31845176, 7.72920193, 7.40609306, 8.25247917],
|
||||
[8.31845176, 7.72920193, 7.40609306, 7.23665561]]
|
||||
iw_I_ref = [0.37259443, 1.79993056]
|
||||
iw_J_ref = [0.05740597, 0.78096241]
|
||||
iw_J_ref = [0.05740597, 0.76331859]
|
||||
|
||||
|
||||
def test_get_all_tetrahedra_relative_grid_address():
|
||||
|
|
Loading…
Reference in New Issue