Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions src/integrator_ias15.c
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,8 @@ static struct reb_dpconst7 dpcast(struct reb_dp7 dp){
}

static inline void add_cs(double* p, double* csp, double inp){
const double y = inp - *csp;
const double t = *p + y;
*csp = (t - *p) - y;
const double t = *p + (inp - *csp);
*csp += (t - *p) - inp;
*p = t;
}

Expand Down
Loading