Skip to content

Commit

Permalink
Correct patch to zero out particleCharge vector for extremely low cha…
Browse files Browse the repository at this point in the history
…rges
  • Loading branch information
LSchwiebert committed Jul 12, 2024
1 parent 65a7ada commit 33e18ff
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/Ewald.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,6 @@ void Ewald::Init() {
for (uint a = 0; a < molKind.NumAtoms(); ++a) {
particleKind.push_back(molKind.AtomKind(a));
particleMol.push_back(m);
particleCharge.push_back(molKind.AtomCharge(a));
if (std::abs(molKind.AtomCharge(a)) < 1.0e-9) {
particleCharge.push_back(0.0);
particleHasNoCharge.push_back(true);
Expand Down

0 comments on commit 33e18ff

Please sign in to comment.