Commit 2b2c98c0 authored by Sunhwan Jo's avatar Sunhwan Jo
Browse files

provide error description

parent 0db10f6c
......@@ -889,11 +889,8 @@ class GromacsTopFile(object):
q = float(params[4])
if has_nbfix_terms:
# when NBFIX term is found, add all possible nonbond atom pairs explicitly
if self._defaults[1] != '2':
# CHARMM parameters are compatible with the Lorentz-Berthelot combination
# rule (type 2) and we will stick with that for simplicity.
raise NotImplemented
raise NotImplemented('NBFIX terms with LB combination rule is not yet supported')
nb.addParticle(q, 1.0, 0.0)
atom_charges.append(q)
else:
......@@ -1056,11 +1053,8 @@ class GromacsTopFile(object):
lj.setCutoffDistance(nonbondedCutoff)
if has_nbfix_terms:
# when NBFIX term is found, add all possible nonbond atom pairs explicitly
if self._defaults[1] != '2':
# CHARMM parameters are compatible with the Lorentz-Berthelot combination
# rule (type 2) and we will stick with that for simplicity.
raise NotImplemented
raise NotImplemented('NBFIX terms with LB combination rule is not yet supported')
atom_nbfix_types = set([])
for pair in self._nonbondTypes:
......
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