Unverified Commit ad113a0c authored by Peter Eastman's avatar Peter Eastman Committed by GitHub
Browse files

Fixed an error in condensing LJ types in CharmmPsfFile (#3210)

parent 94057ffb
......@@ -1248,7 +1248,7 @@ class CharmmPsfFile(object):
if lj_idx_list[j] > 0: continue # already assigned
if atom2 is atom:
lj_idx_list[j] = num_lj_types
elif not atom.nbfix and not atom.nbthole:
elif not atom.nbfix and not atom.nbthole and not atom2.nbfix and not atom2.nbthole:
# Only non-NBFIXed and non-NBTholed atom types can be compressed
ljtype2 = (atom2.rmin, atom2.epsilon)
if ljtype == ljtype2:
......
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