Skip to content

Commit

Permalink
removed absolute values in switching condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiger Lu authored and Tiger Lu committed Aug 12, 2024
1 parent 2c98413 commit 2c05144
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/integrator_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ int reb_integrator_trace_switch_default(struct reb_simulation* const r, const un

double dmin2;
double tmin = -d*qv/(2.*v2);
if (fabs(tmin) < h2){
if (tmin < h2){
// minimum is in the window
dmin2 = rp - qv/(4.*v2);
}
Expand Down

0 comments on commit 2c05144

Please sign in to comment.