Skip to content

Commit

Permalink
Updating conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathleen Kiker committed Nov 4, 2024
1 parent 1b63942 commit 8e78061
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/adam_core/propagator/adam_assist.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,7 @@ def _detect_impacts(
# the simulation or the final integrator time is reached.
while past_integrator_time is False and len(orbits) > 0:
sim.steps(1)
# print(sim.dt_last_done)
if (sim.t >= final_integrator_time) or (backward_propagation and sim.t <= final_integrator_time):
if (sim.t >= final_integrator_time and not backward_propagation) or (backward_propagation and sim.t <= final_integrator_time):
past_integrator_time = True

# Get serialized particle data as numpy arrays
Expand Down

0 comments on commit 8e78061

Please sign in to comment.