Skip to content

Commit

Permalink
Fixed sign error
Browse files Browse the repository at this point in the history
  • Loading branch information
gregjesl committed Oct 14, 2024
1 parent d04d502 commit db8722f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dynamics/sph_harmonics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ impl AccelModel for Harmonics {
sum.x += (m as f64) * a_nm[(n, m)] * e_;
sum.y += (m as f64) * a_nm[(n, m)] * f_;
sum.z += self.vr01[(n, m)] * a_nm[(n, m + 1)] * d_;
sum.w += self.vr11[(n, m)] * a_nm[(n + 1, m + 1)] * d_;
sum.w -= self.vr11[(n, m)] * a_nm[(n + 1, m + 1)] * d_;
}
let rr = rho_np1 / eq_radius_km;
accel4 += rr * sum;
Expand Down

0 comments on commit db8722f

Please sign in to comment.