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
4358f071
Unverified
Commit
4358f071
authored
Feb 13, 2022
by
Peter Eastman
Committed by
GitHub
Feb 13, 2022
Browse files
Fixed error when invalidating molecules (#3460)
parent
cb293447
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
platforms/common/src/ComputeContext.cpp
platforms/common/src/ComputeContext.cpp
+1
-0
No files found.
platforms/common/src/ComputeContext.cpp
View file @
4358f071
...
@@ -389,6 +389,7 @@ bool ComputeContext::invalidateMolecules(ComputeForceInfo* force) {
...
@@ -389,6 +389,7 @@ bool ComputeContext::invalidateMolecules(ComputeForceInfo* force) {
vector
<
mm_double4
>
oldVelm
(
paddedNumAtoms
);
vector
<
mm_double4
>
oldVelm
(
paddedNumAtoms
);
vector
<
mm_double4
>
newVelm
(
paddedNumAtoms
,
mm_double4
(
0
,
0
,
0
,
0
));
vector
<
mm_double4
>
newVelm
(
paddedNumAtoms
,
mm_double4
(
0
,
0
,
0
,
0
));
getPosq
().
download
(
oldPosq
);
getPosq
().
download
(
oldPosq
);
getPosqCorrection
().
download
(
oldPosqCorrection
);
getVelm
().
download
(
oldVelm
);
getVelm
().
download
(
oldVelm
);
for
(
int
i
=
0
;
i
<
numAtoms
;
i
++
)
{
for
(
int
i
=
0
;
i
<
numAtoms
;
i
++
)
{
int
index
=
atomIndex
[
i
];
int
index
=
atomIndex
[
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