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
33badc47
"plugins/amoeba/vscode:/vscode.git/clone" did not exist on "c44c956de6fa2c94cb17f7a308c975c029d94f3e"
Commit
33badc47
authored
Mar 28, 2012
by
Peter Eastman
Browse files
Allow specifying solute and solvent dielectrics for GBSAOBCForce
parent
b3f88f6f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
wrappers/python/simtk/openmm/app/forcefield.py
wrappers/python/simtk/openmm/app/forcefield.py
+4
-0
No files found.
wrappers/python/simtk/openmm/app/forcefield.py
View file @
33badc47
...
@@ -1016,6 +1016,10 @@ class GBSAOBCGenerator:
...
@@ -1016,6 +1016,10 @@ class GBSAOBCGenerator:
raise
ValueError
(
'No GBSAOBC parameters defined for atom type '
+
t
)
raise
ValueError
(
'No GBSAOBC parameters defined for atom type '
+
t
)
force
.
setNonbondedMethod
(
methodMap
[
nonbondedMethod
])
force
.
setNonbondedMethod
(
methodMap
[
nonbondedMethod
])
force
.
setCutoffDistance
(
nonbondedCutoff
)
force
.
setCutoffDistance
(
nonbondedCutoff
)
if
'soluteDielectric'
in
args
:
force
.
setSoluteDielectric
(
float
(
args
[
'soluteDielectric'
]))
if
'solventDielectric'
in
args
:
force
.
setSolventDielectric
(
float
(
args
[
'solventDielectric'
]))
sys
.
addForce
(
force
)
sys
.
addForce
(
force
)
parsers
[
"GBSAOBCForce"
]
=
GBSAOBCGenerator
.
parseElement
parsers
[
"GBSAOBCForce"
]
=
GBSAOBCGenerator
.
parseElement
...
...
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