Skip to content

Commit

Permalink
fix empty particle syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiger Lu committed Jul 18, 2024
1 parent 61398c0 commit fbf4c5c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/integrator_trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -278,15 +278,15 @@ int reb_integrator_trace_switch_peri_ep_accels(struct reb_simulation* const r, c

// TLUEPP

struct reb_particle pi_pre = {};
struct reb_particle pi_pre = {0};
pi_pre.x = r->particles[j].x - h2 * r->particles[j].vx;
pi_pre.y = r->particles[j].y - h2 * r->particles[j].vy;
pi_pre.z = r->particles[j].z - h2 * r->particles[j].vz;
pi_pre.vx = r->particles[j].vx - h2 * ddx;
pi_pre.vy = r->particles[j].vy - h2 * ddy;
pi_pre.vz = r->particles[j].vz - h2 * ddz;

struct reb_particle pi_post = {};
struct reb_particle pi_post = {0};
pi_post.x = r->particles[j].x + h2 * r->particles[j].vx;
pi_post.y = r->particles[j].y + h2 * r->particles[j].vy;
pi_post.z = r->particles[j].z + h2 * r->particles[j].vz;
Expand Down

0 comments on commit fbf4c5c

Please sign in to comment.