Skip to content

Commit

Permalink
Bug Fixed: dopri and rkf78 index error
Browse files Browse the repository at this point in the history
  • Loading branch information
alvinng4 committed Jan 25, 2024
1 parent 2815106 commit 9d01c2f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gravity_sim/simulator.py
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ def rk_embedded(
# fac_min = 0.33
# fac = 0.38**(1.0 / (1.0 + min_power))

vk = np.zeros((max_power + 1, objects_count, 3))
xk = np.zeros((max_power + 1, objects_count, 3))
vk = np.zeros((stages, objects_count, 3))
xk = np.zeros((stages, objects_count, 3))
integrate = True
while integrate:
for stage in range(stages):
Expand Down

0 comments on commit 9d01c2f

Please sign in to comment.