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
f9bd59ef
"vscode:/vscode.git/clone" did not exist on "b3be7aecfd3b98a68c503e333bf6f9ea7b41abee"
Commit
f9bd59ef
authored
Jan 18, 2015
by
Jason Swails
Browse files
Fix Amber custom GB models with both a salt concentration *and* a cutoff.
parent
6ad2aff3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
wrappers/python/simtk/openmm/app/internal/customgbforces.py
wrappers/python/simtk/openmm/app/internal/customgbforces.py
+2
-2
No files found.
wrappers/python/simtk/openmm/app/internal/customgbforces.py
View file @
f9bd59ef
...
...
@@ -217,7 +217,7 @@ def _createEnergyTerms(force, solventDielectric, soluteDielectric, SA, cutoff, k
"f=sqrt(r^2+B1*B2*exp(-r^2/(4*B1*B2)))"
+
params
,
CustomGBForce
.
ParticlePairNoExclusions
)
else
:
if
kappa
>
0
:
force
.
addEnergyTerm
(
"-138.935485*(1/soluteDielectric-kappa/solventDielectric)*q1*q2*(1/f-"
+
str
(
1
/
cutoff
)
+
");"
force
.
addEnergyTerm
(
"-138.935485*(1/soluteDielectric-
exp(-
kappa
*f)
/solventDielectric)*q1*q2*(1/f-"
+
str
(
1
/
cutoff
)
+
");"
"f=sqrt(r^2+B1*B2*exp(-r^2/(4*B1*B2)))"
+
params
,
CustomGBForce
.
ParticlePairNoExclusions
)
else
:
force
.
addEnergyTerm
(
"-138.935485*(1/soluteDielectric-1/solventDielectric)*q1*q2*(1/f-"
+
str
(
1
/
cutoff
)
+
");"
...
...
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