Skip to content

Commit

Permalink
Small fix to the octupole implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
dingye18 committed Mar 8, 2024
1 parent 511a721 commit 10bea38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dmff/admp/recip.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def theta3prime_eval(u, Nj_Aji_star, M_u, Mprime_u, M2prime_u, M3prime_u):
]
).swapaxes(0, 3).swapaxes(1, 2).swapaxes(2, 3)

return jnp.einsum("im,jn,ko,abcd->aijk", -Nj_Aji_star, -Nj_Aji_star, -Nj_Aji_star, div)
return jnp.einsum("im,jn,ko,amno->aijk", -Nj_Aji_star, -Nj_Aji_star, -Nj_Aji_star, div)


def sph_harmonics_GO(u0, Nj_Aji_star):
Expand Down Expand Up @@ -423,7 +423,7 @@ def sph_harmonics_GO(u0, Nj_Aji_star):
(5 * theta3prime[:, 2, 2, 2] - 3 * jnp.trace(theta3prime[:, 2], axis1 = 1, axis2 = 2)) / 2,
rt6 * (5 * theta3prime[:, 0, 2, 2] - jnp.trace(theta3prime[:, 0], axis1 = 1, axis2 = 2)) / 4,
rt6 * (5 * theta3prime[:, 1, 2, 2] - jnp.trace(theta3prime[:, 1], axis1 = 1, axis2 = 2)) / 4,
rt15 * (theta3prime[:, 2, 0, 0] - theta3prime[:, 2, 1,1]) / 2,
rt15 * (theta3prime[:, 2, 0, 0] - theta3prime[:, 2, 1, 1]) / 2,
rt15 * theta3prime[:, 0, 1, 2],
rt10 * (theta3prime[:, 0, 0, 0] - 3 * theta3prime[:, 0, 1, 1]) / 4,
rt10 * (3 * theta3prime[:, 0, 0, 1] - theta3prime[:, 1, 1, 1]) / 4
Expand Down

0 comments on commit 10bea38

Please sign in to comment.