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
4daa1acb
Commit
4daa1acb
authored
Nov 19, 2015
by
Peter Eastman
Browse files
Fixed bugs that affected nucleotides in AMOEBA
parent
fd473eea
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/forcefield.py
wrappers/python/simtk/openmm/app/forcefield.py
+2
-2
No files found.
wrappers/python/simtk/openmm/app/forcefield.py
View file @
4daa1acb
...
@@ -2656,7 +2656,7 @@ class AmoebaPiTorsionGenerator:
...
@@ -2656,7 +2656,7 @@ class AmoebaPiTorsionGenerator:
atom1
=
bond
.
atom1
atom1
=
bond
.
atom1
atom2
=
bond
.
atom2
atom2
=
bond
.
atom2
if
(
len
(
data
.
atomBonds
[
atom1
])
==
3
and
len
(
data
.
atomBonds
[
atom
1
])
==
3
):
if
(
len
(
data
.
atomBonds
[
atom1
])
==
3
and
len
(
data
.
atomBonds
[
atom
2
])
==
3
):
type1
=
data
.
atomType
[
data
.
atoms
[
atom1
]]
type1
=
data
.
atomType
[
data
.
atoms
[
atom1
]]
type2
=
data
.
atomType
[
data
.
atoms
[
atom2
]]
type2
=
data
.
atomType
[
data
.
atoms
[
atom2
]]
...
@@ -2941,7 +2941,7 @@ class AmoebaTorsionTorsionGenerator:
...
@@ -2941,7 +2941,7 @@ class AmoebaTorsionTorsionGenerator:
# match in reverse order
# match in reverse order
if
(
type5
in
types1
and
type4
in
types2
and
type3
in
types3
and
type2
in
types4
and
type1
in
types5
):
el
if
(
type5
in
types1
and
type4
in
types2
and
type3
in
types3
and
type2
in
types4
and
type1
in
types5
):
chiralAtomIndex
=
self
.
getChiralAtomIndex
(
data
,
sys
,
ib
,
ic
,
id
)
chiralAtomIndex
=
self
.
getChiralAtomIndex
(
data
,
sys
,
ib
,
ic
,
id
)
force
.
addTorsionTorsion
(
ie
,
id
,
ic
,
ib
,
ia
,
chiralAtomIndex
,
self
.
gridIndex
[
i
])
force
.
addTorsionTorsion
(
ie
,
id
,
ic
,
ib
,
ia
,
chiralAtomIndex
,
self
.
gridIndex
[
i
])
...
...
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