Commit 470675ae authored by John Chodera (MSKCC)'s avatar John Chodera (MSKCC)
Browse files

Added dispersion correction flag handling to NonbondedGenerator.

parent 84afd74a
......@@ -1107,6 +1107,8 @@ class NonbondedGenerator:
force.setCutoffDistance(nonbondedCutoff)
if 'ewaldErrorTolerance' in args:
force.setEwaldErrorTolerance(args['ewaldErrorTolerance'])
if 'useDispersionCorrection' in args:
force.setUseDispersionCorrection(bool(args['useDispersionCorrection']))
sys.addForce(force)
def postprocessSystem(self, sys, data, args):
......
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