Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
tsoc
openmm
Commits
eba7ac01
Commit
eba7ac01
authored
Oct 14, 2013
by
peastman
Browse files
Merge pull request #165 from swails/master
correct minor bug in GBn screening parameter determination.
parents
48dc97ba
95b6034b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
wrappers/python/simtk/openmm/app/internal/amber_file_parser.py
...ers/python/simtk/openmm/app/internal/amber_file_parser.py
+7
-5
No files found.
wrappers/python/simtk/openmm/app/internal/amber_file_parser.py
View file @
eba7ac01
...
@@ -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?
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment