From 4e94bc42eebcd34c3c4c56447064b0ea65a1c811 Mon Sep 17 00:00:00 2001 From: Ruth-Huang6012 <90351625+Ruth-Huang6012@users.noreply.github.com> Date: Tue, 19 Mar 2024 09:25:49 -0400 Subject: [PATCH] Fixed bug in integrator_whfast512.c (#760) Line 768-770 changed = to - --- src/integrator_whfast512.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/integrator_whfast512.c b/src/integrator_whfast512.c index 7c1c637b8..4fd708aad 100644 --- a/src/integrator_whfast512.c +++ b/src/integrator_whfast512.c @@ -765,9 +765,9 @@ static void democraticheliocentric_to_inertial_posvel(struct reb_simulation* r){ particles[s*N_per_system].x = ri_whfast512->p_jh0[s].x - x0s; particles[s*N_per_system].y = ri_whfast512->p_jh0[s].y - y0s; particles[s*N_per_system].z = ri_whfast512->p_jh0[s].z - z0s; - particles[s*N_per_system].vx = ri_whfast512->p_jh0[s].vx = vx0s; - particles[s*N_per_system].vy = ri_whfast512->p_jh0[s].vy = vy0s; - particles[s*N_per_system].vz = ri_whfast512->p_jh0[s].vz = vz0s; + particles[s*N_per_system].vx = ri_whfast512->p_jh0[s].vx - vx0s; + particles[s*N_per_system].vy = ri_whfast512->p_jh0[s].vy - vy0s; + particles[s*N_per_system].vz = ri_whfast512->p_jh0[s].vz - vz0s; for (unsigned int i=1; i