Skip to content

Commit

Permalink
Correct erroneous factors of 0.5 in supertranslation
Browse files Browse the repository at this point in the history
  • Loading branch information
moble committed Sep 21, 2023
1 parent 1bc896a commit 73fd205
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scri/waveform_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ def from_modes(cls, w_modes, **kwargs):
if beta != 0 or (supertranslation[1:] != 0).any():
if w_modes.dataType == h:
# Note that SWSH_j_k will use s=-2 in this case, so it can be used in the tensordot correctly
supertranslation_deriv = 0.5 * sf.ethbar_GHP(sf.ethbar_GHP(supertranslation, 0, 0), -1, 0)
supertranslation_deriv = 2 * sf.ethbar_GHP(sf.ethbar_GHP(supertranslation, 0, 0), -1, 0)
supertranslation_deriv_values = np.tensordot(
supertranslation_deriv,
SWSH_j_k[:, :, : sf.LM_index(ell_max_supertranslation, ell_max_supertranslation, 0) + 1],
Expand All @@ -494,7 +494,7 @@ def from_modes(cls, w_modes, **kwargs):
fprm_i_j_k -= supertranslation_deriv_values[np.newaxis, :, :]
elif w_modes.dataType == sigma:
# Note that SWSH_j_k will use s=+2 in this case, so it can be used in the tensordot correctly
supertranslation_deriv = 0.5 * sf.eth_GHP(sf.eth_GHP(supertranslation, 0, 0), 1, 0)
supertranslation_deriv = sf.eth_GHP(sf.eth_GHP(supertranslation, 0, 0), 1, 0)
supertranslation_deriv_values = np.tensordot(
supertranslation_deriv,
SWSH_j_k[:, :, : sf.LM_index(ell_max_supertranslation, ell_max_supertranslation, 0) + 1],
Expand Down

0 comments on commit 73fd205

Please sign in to comment.