Commit 6fba0af 1 parent dfd674b commit 6fba0af Copy full SHA for 6fba0af
File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 10
10
Author: Zachariah B. Etienne
11
11
zachetie **at** gmail **dot* com
12
12
"""
13
+
13
14
import sys
14
15
from typing import Tuple , Dict
15
16
@@ -137,9 +138,7 @@ def compute_second_derivative_in_time(
137
138
second_derivative [1 :- 1 ] = (data [:- 2 ] - 2 * data [1 :- 1 ] + data [2 :]) / (dt ** 2 )
138
139
139
140
# Endpoint 0: forward finite difference (downwind)
140
- second_derivative [0 ] = (2 * data [0 ] - 5 * data [1 ] + 4 * data [2 ] - data [3 ]) / (
141
- dt ** 2
142
- )
141
+ second_derivative [0 ] = (2 * data [0 ] - 5 * data [1 ] + 4 * data [2 ] - data [3 ]) / (dt ** 2 )
143
142
144
143
# Endpoint n-1: backward finite difference (upwind)
145
144
second_derivative [- 1 ] = (2 * data [- 1 ] - 5 * data [- 2 ] + 4 * data [- 3 ] - data [- 4 ]) / (
@@ -341,7 +340,9 @@ def main() -> None:
341
340
and r/M value are provided via the command line.
342
341
"""
343
342
if len (sys .argv ) != 2 :
344
- print ("Usage: python3 BHaH_psi4_to_phase_amp_omega_FFI_strain_psi4check.py <extraction radius (r/M)>" )
343
+ print (
344
+ "Usage: python3 BHaH_psi4_to_phase_amp_omega_FFI_strain_psi4check.py <extraction radius (r/M)>"
345
+ )
345
346
sys .exit ()
346
347
extraction_radius = float (sys .argv [1 ])
347
348
generic_file_name = construct_generic_filename (extraction_radius )
You can’t perform that action at this time.
0 commit comments