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
3cf23d20
"platforms/cpu/vscode:/vscode.git/clone" did not exist on "b456b98019dd174a7afe075113ef0b75e5dae286"
Commit
3cf23d20
authored
Sep 25, 2015
by
Andy Simmonett
Browse files
Small fix to rec space OPT, to fix out-of-bounds read.
parent
3d04b720
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
plugins/amoeba/platforms/reference/src/SimTKReference/AmoebaReferenceMultipoleForce.cpp
...ence/src/SimTKReference/AmoebaReferenceMultipoleForce.cpp
+1
-1
No files found.
plugins/amoeba/platforms/reference/src/SimTKReference/AmoebaReferenceMultipoleForce.cpp
View file @
3cf23d20
...
...
@@ -5979,7 +5979,7 @@ RealOpenMM AmoebaReferencePmeMultipoleForce::computeReciprocalSpaceInducedDipole
inducedDipolePolar
[
0
]
=
_ptDipoleP
[
l
][
i
][
0
]
*
cartToFrac
[
0
][
0
]
+
_ptDipoleP
[
l
][
i
][
1
]
*
cartToFrac
[
0
][
1
]
+
_ptDipoleP
[
l
][
i
][
2
]
*
cartToFrac
[
0
][
2
];
inducedDipolePolar
[
1
]
=
_ptDipoleP
[
l
][
i
][
0
]
*
cartToFrac
[
1
][
0
]
+
_ptDipoleP
[
l
][
i
][
1
]
*
cartToFrac
[
1
][
1
]
+
_ptDipoleP
[
l
][
i
][
2
]
*
cartToFrac
[
1
][
2
];
inducedDipolePolar
[
2
]
=
_ptDipoleP
[
l
][
i
][
0
]
*
cartToFrac
[
2
][
0
]
+
_ptDipoleP
[
l
][
i
][
1
]
*
cartToFrac
[
2
][
1
]
+
_ptDipoleP
[
l
][
i
][
2
]
*
cartToFrac
[
2
][
2
];
for
(
int
m
=
0
;
m
<
_maxPTOrder
-
1
;
++
m
)
{
for
(
int
m
=
0
;
m
<
_maxPTOrder
-
1
-
l
;
++
m
)
{
RealOpenMM
p
=
_OPTPartCoefficients
[
l
+
m
+
1
];
if
(
std
::
fabs
(
p
)
<
1e-6
)
continue
;
for
(
int
k
=
0
;
k
<
3
;
k
++
)
{
...
...
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