"platforms/cpu/vscode:/vscode.git/clone" did not exist on "7dc2ff9eb4cee8cfdd9fb7af9dd3c0a8a405c391"
Commit d47cb004 authored by Jason Swails's avatar Jason Swails
Browse files

Pass the custom force particle as a tuple of 1 parameter, rather than just as a

single parameter.
parent 8dda27f7
...@@ -1332,7 +1332,7 @@ class CharmmPsfFile(object): ...@@ -1332,7 +1332,7 @@ class CharmmPsfFile(object):
cforce.setUseSwitchingFunction(True) cforce.setUseSwitchingFunction(True)
cforce.setSwitchingDistance(switchDistance) cforce.setSwitchingDistance(switchDistance)
for i in lj_idx_list: for i in lj_idx_list:
cforce.addParticle(i - 1) # adjust for indexing from 0 cforce.addParticle((i - 1,)) # adjust for indexing from 0
# Add 1-4 interactions # Add 1-4 interactions
excluded_atom_pairs = set() # save these pairs so we don't zero them out excluded_atom_pairs = set() # save these pairs so we don't zero them out
......
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