From 8bb07341401181bb9dbece2f928a0e8e7de23f3e Mon Sep 17 00:00:00 2001 From: Nils Berglund <83530463+nilsberglund-orleans@users.noreply.github.com> Date: Sun, 22 Jan 2023 18:14:50 +0100 Subject: [PATCH] Update sub_lj.c --- sub_lj.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sub_lj.c b/sub_lj.c index 8320d17..19ac849 100644 --- a/sub_lj.c +++ b/sub_lj.c @@ -5860,7 +5860,7 @@ void compute_inverse_masses(double inv_masses[RD_TYPES+1]) for (type = 3; type < RD_TYPES+1; type++) { mass = PARTICLE_MASS_B + (double)(type-2)*PARTICLE_MASS; - inv_masses[type] = 1.0/(1.0/PARTICLE_MASS + 1.0/mass); + inv_masses[type] = 1.0/(PARTICLE_MASS + mass); } break; } @@ -5869,7 +5869,7 @@ void compute_inverse_masses(double inv_masses[RD_TYPES+1]) for (type = 3; type < RD_TYPES+1; type++) { mass = PARTICLE_MASS_B + (double)(type-2)*PARTICLE_MASS; - inv_masses[type] = 1.0/(1.0/PARTICLE_MASS + 1.0/mass); + inv_masses[type] = 1.0/(PARTICLE_MASS + mass); } break; }