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
fb8c80ad
Unverified
Commit
fb8c80ad
authored
Aug 06, 2019
by
peastman
Committed by
GitHub
Aug 06, 2019
Browse files
Merge pull request #2362 from j-wags/fix_2360
Fix 2360
parents
bf7aee53
beb977ae
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
0 deletions
+10
-0
wrappers/python/simtk/openmm/app/internal/amber_file_parser.py
...ers/python/simtk/openmm/app/internal/amber_file_parser.py
+2
-0
wrappers/python/tests/TestAmberPrmtopFile.py
wrappers/python/tests/TestAmberPrmtopFile.py
+8
-0
No files found.
wrappers/python/simtk/openmm/app/internal/amber_file_parser.py
View file @
fb8c80ad
...
...
@@ -989,6 +989,8 @@ def readAmberSystem(topology, prmtop_filename=None, prmtop_loader=None, shake=No
gb
=
mm
.
GBSAOBCForce
()
gb
.
setSoluteDielectric
(
soluteDielectric
)
gb
.
setSolventDielectric
(
solventDielectric
)
if
gbsaModel
is
None
:
gb
.
setSurfaceAreaEnergy
(
0
)
elif
gbmodel
==
'GBn'
:
gb
=
customgb
.
GBSAGBnForce
(
solventDielectric
,
soluteDielectric
,
gbsaModel
,
cutoff
,
implicitSolventKappa
)
elif
gbmodel
==
'GBn2'
:
...
...
wrappers/python/tests/TestAmberPrmtopFile.py
View file @
fb8c80ad
...
...
@@ -127,6 +127,14 @@ class TestAmberPrmtopFile(unittest.TestCase):
self
.
assertTrue
(
found_matching_solvent_dielectric
and
found_matching_solute_dielectric
)
def
test_ImplicitSolventZeroSA
(
self
):
"""Test that requesting gbsaModel=None yields a surface area energy of 0 when
prmtop.createSystem produces a GBSAOBCForce"""
system
=
prmtop2
.
createSystem
(
implicitSolvent
=
OBC2
,
gbsaModel
=
None
)
for
force
in
system
.
getForces
():
if
isinstance
(
force
,
GBSAOBCForce
):
self
.
assertEqual
(
force
.
getSurfaceAreaEnergy
(),
0
*
kilojoule
/
(
nanometer
**
2
*
mole
))
def
test_HydrogenMass
(
self
):
"""Test that altering the mass of hydrogens works correctly."""
...
...
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