Update sub_lj.c

This commit is contained in:
Nils Berglund 2023-01-22 18:14:50 +01:00 committed by GitHub
parent 474945e23b
commit 8bb0734140
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}