Skip to content

Commit

Permalink
removed unused function
Browse files Browse the repository at this point in the history
  • Loading branch information
hannorein committed Jan 2, 2025
1 parent f437a65 commit 4229bd1
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 20 deletions.
19 changes: 0 additions & 19 deletions src/integrator_ias15.c
Original file line number Diff line number Diff line change
Expand Up @@ -775,25 +775,6 @@ void reb_integrator_ias15_part2(struct reb_simulation* r){

void reb_integrator_ias15_synchronize(struct reb_simulation* r){
}
void reb_integrator_ias15_clear(struct reb_simulation* r){
const int N3 = r->ri_ias15.N_allocated;
if (N3){
clear_dp7(&(r->ri_ias15.g),N3);
clear_dp7(&(r->ri_ias15.e),N3);
clear_dp7(&(r->ri_ias15.b),N3);
clear_dp7(&(r->ri_ias15.csb),N3);
clear_dp7(&(r->ri_ias15.er),N3);
clear_dp7(&(r->ri_ias15.br),N3);

double* restrict const csx = r->ri_ias15.csx;
double* restrict const csv = r->ri_ias15.csv;
for (int i=0;i<N3;i++){
// Kill compensated summation coefficients
csx[i] = 0;
csv[i] = 0;
}
}
}

void reb_integrator_ias15_reset(struct reb_simulation* r){
r->ri_ias15.N_allocated = 0;
Expand Down
1 change: 0 additions & 1 deletion src/integrator_ias15.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,5 @@
#define _INTEGRATOR_IAS15_H
void reb_integrator_ias15_part1(struct reb_simulation* r); ///< Internal function used to call a specific integrator
void reb_integrator_ias15_synchronize(struct reb_simulation* r); ///< Internal function used to call a specific integrator
void reb_integrator_ias15_clear(struct reb_simulation* r); ///< Internal function used to call a specific integrator
void reb_integrator_ias15_alloc(struct reb_simulation* r); ///< Internal function, alloctes memory for IAS15
#endif

0 comments on commit 4229bd1

Please sign in to comment.