Skip to content

Commit

Permalink
minor things mentioned in PR
Browse files Browse the repository at this point in the history
  • Loading branch information
hannorein committed May 6, 2024
1 parent b65362e commit ef08536
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
1 change: 1 addition & 0 deletions src/output.c
Original file line number Diff line number Diff line change
Expand Up @@ -667,3 +667,4 @@ void reb_simulation_output_velocity_dispersion(struct reb_simulation* r, char* f
fprintf(of,"%e\t%e\t%e\t%e\t%e\t%e\t%e\n",r->t,A_tot.x,A_tot.y,A_tot.z,Q_tot.x,Q_tot.y,Q_tot.z);
fclose(of);
}

1 change: 1 addition & 0 deletions src/rebound.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ void reb_simulation_step(struct reb_simulation* const r){
r->ri_whfast.recalculate_coordinates_this_timestep = 1;
r->ri_mercurius.recalculate_coordinates_this_timestep = 1;
}

reb_integrator_part1(r);
PROFILING_STOP(PROFILING_CAT_INTEGRATOR)

Expand Down
8 changes: 4 additions & 4 deletions src/rebound.h
Original file line number Diff line number Diff line change
Expand Up @@ -842,10 +842,10 @@ DLLEXPORT double reb_simulation_lyapunov(struct reb_simulation* r);

// Built in mercurius switching functions

double reb_integrator_mercurius_L_mercury(const struct reb_simulation* const r, double d, double dcrit); // default
double reb_integrator_mercurius_L_infinity(const struct reb_simulation* const r, double d, double dcrit);
double reb_integrator_mercurius_L_C4(const struct reb_simulation* const r, double d, double dcrit);
double reb_integrator_mercurius_L_C5(const struct reb_simulation* const r, double d, double dcrit);
DLLEXPORT double reb_integrator_mercurius_L_mercury(const struct reb_simulation* const r, double d, double dcrit); // default
DLLEXPORT double reb_integrator_mercurius_L_infinity(const struct reb_simulation* const r, double d, double dcrit);
DLLEXPORT double reb_integrator_mercurius_L_C4(const struct reb_simulation* const r, double d, double dcrit);
DLLEXPORT double reb_integrator_mercurius_L_C5(const struct reb_simulation* const r, double d, double dcrit);

// Built in trace switching functions

Expand Down

0 comments on commit ef08536

Please sign in to comment.