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
a6a05ee6
Unverified
Commit
a6a05ee6
authored
Nov 09, 2022
by
Peter Eastman
Committed by
GitHub
Nov 09, 2022
Browse files
Fixed error in CustomNonbondedForce on CPU (#3840)
parent
e2a5b168
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
platforms/cpu/include/CpuCustomNonbondedForceFvec.h
platforms/cpu/include/CpuCustomNonbondedForceFvec.h
+1
-1
No files found.
platforms/cpu/include/CpuCustomNonbondedForceFvec.h
View file @
a6a05ee6
...
@@ -172,7 +172,7 @@ void CpuCustomNonbondedForceFvec<FVEC, BLOCK_SIZE>::calculateBlockIxnImpl(Thread
...
@@ -172,7 +172,7 @@ void CpuCustomNonbondedForceFvec<FVEC, BLOCK_SIZE>::calculateBlockIxnImpl(Thread
r
.
store
(
data
.
rvec
.
data
());
r
.
store
(
data
.
rvec
.
data
());
FVEC
dEdR
(
data
.
forceVecExpression
.
evaluate
());
FVEC
dEdR
(
data
.
forceVecExpression
.
evaluate
());
FVEC
energy
;
FVEC
energy
;
if
(
includeEnergy
)
if
(
includeEnergy
||
useSwitch
)
energy
=
FVEC
(
data
.
energyVecExpression
.
evaluate
());
energy
=
FVEC
(
data
.
energyVecExpression
.
evaluate
());
if
(
useSwitch
)
{
if
(
useSwitch
)
{
const
auto
t
=
blendZero
((
r
-
switchingDistance
)
*
invSwitchingInterval
,
r
>
switchingDistance
);
const
auto
t
=
blendZero
((
r
-
switchingDistance
)
*
invSwitchingInterval
,
r
>
switchingDistance
);
...
...
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