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
3516752a
Unverified
Commit
3516752a
authored
Jan 22, 2022
by
Gareth-elliott
Committed by
GitHub
Jan 21, 2022
Browse files
Fix for non-equal force constants in stretch-bend (#3420)
parent
f2cdf70a
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
wrappers/python/openmm/app/forcefield.py
wrappers/python/openmm/app/forcefield.py
+6
-1
No files found.
wrappers/python/openmm/app/forcefield.py
View file @
3516752a
...
...
@@ -4653,7 +4653,12 @@ class AmoebaStretchBendGenerator(object):
raise
ValueError
(
outputString
)
else
:
force
.
addBond
((
angle
[
0
],
angle
[
1
],
angle
[
2
]),
(
bondAB
,
bondCB
,
angleDict
[
'idealAngle'
]
/
radian
,
self
.
k1
[
i
],
self
.
k2
[
i
]))
if
type1
in
types1
and
type3
in
types3
:
k1
,
k2
=
self
.
k1
[
i
],
self
.
k2
[
i
]
else
:
k1
,
k2
=
self
.
k2
[
i
],
self
.
k1
[
i
]
force
.
addBond
((
angle
[
0
],
angle
[
1
],
angle
[
2
]),
(
bondAB
,
bondCB
,
angleDict
[
'idealAngle'
]
/
radian
,
k1
,
k2
))
break
...
...
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