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
7513142b
"vscode:/vscode.git/clone" did not exist on "72def6fb24c80c1ee390fb6e7e2c758ac4489a7d"
Commit
7513142b
authored
Oct 01, 2015
by
peastman
Browse files
Fixed a bug
parent
0412e25d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
platforms/cpu/src/CpuNonbondedForce.cpp
platforms/cpu/src/CpuNonbondedForce.cpp
+2
-2
No files found.
platforms/cpu/src/CpuNonbondedForce.cpp
View file @
7513142b
...
...
@@ -370,13 +370,13 @@ void CpuNonbondedForce::threadComputeDirect(ThreadPool& threads, int threadIndex
break
;
int
end
=
min
(
start
+
groupSize
,
numberOfAtoms
);
for
(
int
i
=
start
;
i
<
end
;
i
++
)
{
fvec4
posI
(
posq
[
4
*
i
],
posq
[
4
*
i
+
1
],
posq
[
4
*
i
+
2
],
0.0
f
);
fvec4
posI
(
(
float
)
atomCoordinates
[
i
][
0
],
(
float
)
atomCoordinates
[
i
][
1
],
(
float
)
atomCoordinates
[
i
][
2
],
0.0
f
);
float
scaledChargeI
=
(
float
)
(
ONE_4PI_EPS0
*
posq
[
4
*
i
+
3
]);
for
(
set
<
int
>::
const_iterator
iter
=
exclusions
[
i
].
begin
();
iter
!=
exclusions
[
i
].
end
();
++
iter
)
{
if
(
*
iter
>
i
)
{
int
j
=
*
iter
;
fvec4
deltaR
;
fvec4
posJ
(
posq
[
4
*
j
],
posq
[
4
*
j
+
1
],
posq
[
4
*
j
+
2
],
0.0
f
);
fvec4
posJ
(
(
float
)
atomCoordinates
[
j
][
0
],
(
float
)
atomCoordinates
[
j
][
1
],
(
float
)
atomCoordinates
[
j
][
2
],
0.0
f
);
float
r2
;
getDeltaR
(
posJ
,
posI
,
deltaR
,
r2
,
false
,
boxSize
,
invBoxSize
);
float
r
=
sqrtf
(
r2
);
...
...
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