Commit eba7ac01 authored by peastman's avatar peastman
Browse files

Merge pull request #165 from swails/master

correct minor bug in GBn screening parameter determination.
parents 48dc97ba 95b6034b
...@@ -474,15 +474,15 @@ class PrmtopLoader(object): ...@@ -474,15 +474,15 @@ class PrmtopLoader(object):
# Update screening parameters for GBn if specified # Update screening parameters for GBn if specified
if symbls: if symbls:
for (i, symbl) in enumerate(symbls): for (i, symbl) in enumerate(symbls):
if symbl[0] == ('c' or 'C'): if symbl[0] in ('c', 'C'):
screen[i] = 0.48435382330 screen[i] = 0.48435382330
elif symbl[0] == ('h' or 'H'): elif symbl[0] in ('h', 'H'):
screen[i] = 1.09085413633 screen[i] = 1.09085413633
elif symbl[0] == ('n' or 'N'): elif symbl[0] in ('n', 'N'):
screen[i] = 0.700147318409 screen[i] = 0.700147318409
elif symbl[0] == ('o' or 'O'): elif symbl[0] in ('o', 'O'):
screen[i] = 1.06557401132 screen[i] = 1.06557401132
elif symbl[0] == ('s' or 'S'): elif symbl[0] in ('s', 'S'):
screen[i] = 0.602256336067 screen[i] = 0.602256336067
else: else:
screen[i] = 0.5 screen[i] = 0.5
...@@ -829,6 +829,8 @@ def readAmberSystem(prmtop_filename=None, prmtop_loader=None, shake=None, gbmode ...@@ -829,6 +829,8 @@ def readAmberSystem(prmtop_filename=None, prmtop_loader=None, shake=None, gbmode
gb.setCutoffDistance(nonbondedCutoff) gb.setCutoffDistance(nonbondedCutoff)
else: else:
raise Exception("Illegal nonbonded method for use with GBSA") raise Exception("Illegal nonbonded method for use with GBSA")
# This applies the reaction field dielectric to the NonbondedForce
# created above. Do not bind force to another name before this!
force.setReactionFieldDielectric(1.0) force.setReactionFieldDielectric(1.0)
# TODO: Add GBVI terms? # TODO: Add GBVI terms?
......
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