Skip to content

Commit 5208bf6

Browse files
authored
Merge pull request #5 from OpenBioSim/fix_3
Fix delta in soft-core Coulomb expression
2 parents ab44625 + 56b5de6 commit 5208bf6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/loch/_kernels.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,9 +757,8 @@
757757
}
758758
759759
// Compute the Coulomb interaction.
760-
auto delta_coulomb = shift_coulomb * a;
761760
energy_coul[idx] += (q0 * q1) *
762-
((cpe / sqrtf((delta_coulomb * delta_coulomb)
761+
((cpe / sqrtf((shift_coulomb * shift_coulomb * a)
763762
+ (r * r))) + (rf_kappa * r2) - rf_correction);
764763
765764
}

0 commit comments

Comments
 (0)