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
3b934387
Unverified
Commit
3b934387
authored
Mar 04, 2022
by
Peter Eastman
Committed by
GitHub
Mar 04, 2022
Browse files
Fixed an error when using a NonbondedForce inside a CustomCVForce (#3500)
parent
7432ad8c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
platforms/common/src/kernels/customCVForce.cc
platforms/common/src/kernels/customCVForce.cc
+6
-2
No files found.
platforms/common/src/kernels/customCVForce.cc
View file @
3b934387
...
@@ -8,8 +8,12 @@ KERNEL void copyState(GLOBAL real4* RESTRICT posq, GLOBAL real4* RESTRICT innerP
...
@@ -8,8 +8,12 @@ KERNEL void copyState(GLOBAL real4* RESTRICT posq, GLOBAL real4* RESTRICT innerP
GLOBAL
mixed4
*
RESTRICT
velm
,
GLOBAL
mixed4
*
RESTRICT
innerVelm
,
GLOBAL
int
*
RESTRICT
atomOrder
,
GLOBAL
int
*
RESTRICT
innerInvAtomOrder
,
int
numAtoms
)
{
GLOBAL
mixed4
*
RESTRICT
velm
,
GLOBAL
mixed4
*
RESTRICT
innerVelm
,
GLOBAL
int
*
RESTRICT
atomOrder
,
GLOBAL
int
*
RESTRICT
innerInvAtomOrder
,
int
numAtoms
)
{
for
(
int
i
=
GLOBAL_ID
;
i
<
numAtoms
;
i
+=
GLOBAL_SIZE
)
{
for
(
int
i
=
GLOBAL_ID
;
i
<
numAtoms
;
i
+=
GLOBAL_SIZE
)
{
int
index
=
innerInvAtomOrder
[
atomOrder
[
i
]];
int
index
=
innerInvAtomOrder
[
atomOrder
[
i
]];
innerPosq
[
index
]
=
posq
[
i
];
real4
p
=
posq
[
i
];
innerVelm
[
index
]
=
velm
[
i
];
p
.
w
=
innerPosq
[
index
].
w
;
innerPosq
[
index
]
=
p
;
mixed4
v
=
velm
[
i
];
v
.
w
=
innerVelm
[
index
].
w
;
innerVelm
[
index
]
=
v
;
#ifdef USE_MIXED_PRECISION
#ifdef USE_MIXED_PRECISION
innerPosqCorrection
[
index
]
=
posqCorrection
[
i
];
innerPosqCorrection
[
index
]
=
posqCorrection
[
i
];
#endif
#endif
...
...
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