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
fe144750
"ssh:/git@developer.sourcefind.cn:2222/tsoc/openmm.git" did not exist on "0b8201b25a71c6ab8daeeb65132b28af7a380121"
Commit
fe144750
authored
Oct 08, 2009
by
Peter Eastman
Browse files
Bug fix
parent
a8e9c99a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
10 deletions
+2
-10
platforms/cuda/src/kernels/gpu.cpp
platforms/cuda/src/kernels/gpu.cpp
+2
-2
platforms/cuda/tests/TestCudaNonbondedForce.cpp
platforms/cuda/tests/TestCudaNonbondedForce.cpp
+0
-8
No files found.
platforms/cuda/src/kernels/gpu.cpp
View file @
fe144750
...
@@ -2473,7 +2473,7 @@ void gpuReorderAtoms(gpuContext gpu)
...
@@ -2473,7 +2473,7 @@ void gpuReorderAtoms(gpuContext gpu)
float
minx
=
posq
[
0
].
x
,
maxx
=
posq
[
0
].
x
;
float
minx
=
posq
[
0
].
x
,
maxx
=
posq
[
0
].
x
;
float
miny
=
posq
[
0
].
y
,
maxy
=
posq
[
0
].
y
;
float
miny
=
posq
[
0
].
y
,
maxy
=
posq
[
0
].
y
;
float
minz
=
posq
[
0
].
z
,
maxz
=
posq
[
0
].
z
;
float
minz
=
posq
[
0
].
z
,
maxz
=
posq
[
0
].
z
;
if
(
gpu
->
sim
.
nonbondedMethod
==
PERIODIC
)
if
(
gpu
->
sim
.
nonbondedMethod
==
PERIODIC
||
gpu
->
sim
.
nonbondedMethod
==
EWALD
||
gpu
->
sim
.
nonbondedMethod
==
PARTICLE_MESH_EWALD
)
{
{
minx
=
miny
=
minz
=
0.0
;
minx
=
miny
=
minz
=
0.0
;
maxx
=
gpu
->
sim
.
periodicBoxSizeX
;
maxx
=
gpu
->
sim
.
periodicBoxSizeX
;
...
@@ -2523,7 +2523,7 @@ void gpuReorderAtoms(gpuContext gpu)
...
@@ -2523,7 +2523,7 @@ void gpuReorderAtoms(gpuContext gpu)
molPos
[
i
].
y
/=
atoms
.
size
();
molPos
[
i
].
y
/=
atoms
.
size
();
molPos
[
i
].
z
/=
atoms
.
size
();
molPos
[
i
].
z
/=
atoms
.
size
();
}
}
if
(
gpu
->
sim
.
nonbondedMethod
==
PERIODIC
)
if
(
gpu
->
sim
.
nonbondedMethod
==
PERIODIC
||
gpu
->
sim
.
nonbondedMethod
==
EWALD
||
gpu
->
sim
.
nonbondedMethod
==
PARTICLE_MESH_EWALD
)
{
{
// Move each molecule position into the same box.
// Move each molecule position into the same box.
...
...
platforms/cuda/tests/TestCudaNonbondedForce.cpp
View file @
fe144750
...
@@ -559,14 +559,6 @@ void testBlockInteractions(bool periodic) {
...
@@ -559,14 +559,6 @@ void testBlockInteractions(bool periodic) {
dy
-=
(
float
)(
floor
(
0.5
+
dy
/
boxSize
)
*
boxSize
);
dy
-=
(
float
)(
floor
(
0.5
+
dy
/
boxSize
)
*
boxSize
);
dz
-=
(
float
)(
floor
(
0.5
+
dz
/
boxSize
)
*
boxSize
);
dz
-=
(
float
)(
floor
(
0.5
+
dz
/
boxSize
)
*
boxSize
);
}
}
if
(
dx
*
dx
+
dy
*
dy
+
dz
*
dz
<
cutoff
*
cutoff
)
{
dx
=
pos2
.
x
-
center1
.
x
;
dy
=
pos2
.
y
-
center1
.
y
;
dz
=
pos2
.
z
-
center1
.
z
;
dx
=
max
(
0.0
f
,
abs
(
dx
)
-
gridSize1
.
x
);
dy
=
max
(
0.0
f
,
abs
(
dy
)
-
gridSize1
.
y
);
dz
=
max
(
0.0
f
,
abs
(
dz
)
-
gridSize1
.
z
);
}
ASSERT
(
dx
*
dx
+
dy
*
dy
+
dz
*
dz
>
cutoff
*
cutoff
);
ASSERT
(
dx
*
dx
+
dy
*
dy
+
dz
*
dz
>
cutoff
*
cutoff
);
}
}
}
}
...
...
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