Commit b369cadf authored by peastman's avatar peastman
Browse files

Make sure that calling createExclusionsFromBonds() with bondCutoff=0 never adds exclusions

parent 00553a53
......@@ -176,6 +176,8 @@ void CustomNonbondedForce::setExclusionParticles(int index, int particle1, int p
}
void CustomNonbondedForce::createExclusionsFromBonds(const vector<pair<int, int> >& bonds, int bondCutoff) {
if (bondCutoff < 1)
return;
vector<set<int> > exclusions(particles.size());
vector<set<int> > bonded12(exclusions.size());
for (int i = 0; i < (int) bonds.size(); ++i) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment