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
796b5603
"platforms/cuda/vscode:/vscode.git/clone" did not exist on "2b581bfd5bd3fa14b08dc0a533c1d62b2f963f30"
Commit
796b5603
authored
Jun 11, 2009
by
Peter Eastman
Browse files
CUDA local force kernel applied periodic boundary conditions incorrectly.
parent
4bf75f3d
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
platforms/cuda/src/kernels/kCalculateLocalForces.cu
platforms/cuda/src/kernels/kCalculateLocalForces.cu
+2
-2
No files found.
platforms/cuda/src/kernels/kCalculateLocalForces.cu
View file @
796b5603
...
@@ -547,8 +547,8 @@ __global__ void kCalculateLocalForces_kernel()
...
@@ -547,8 +547,8 @@ __global__ void kCalculateLocalForces_kernel()
d
.
y
=
a1
.
y
-
a2
.
y
;
d
.
y
=
a1
.
y
-
a2
.
y
;
d
.
z
=
a1
.
z
-
a2
.
z
;
d
.
z
=
a1
.
z
-
a2
.
z
;
d
.
x
-=
floor
(
d
.
x
/
cSim
.
periodicBoxSizeX
+
0.5
f
)
*
cSim
.
periodicBoxSizeX
;
d
.
x
-=
floor
(
d
.
x
/
cSim
.
periodicBoxSizeX
+
0.5
f
)
*
cSim
.
periodicBoxSizeX
;
d
.
y
-=
floor
(
d
.
x
/
cSim
.
periodicBoxSizeY
+
0.5
f
)
*
cSim
.
periodicBoxSizeY
;
d
.
y
-=
floor
(
d
.
y
/
cSim
.
periodicBoxSizeY
+
0.5
f
)
*
cSim
.
periodicBoxSizeY
;
d
.
z
-=
floor
(
d
.
x
/
cSim
.
periodicBoxSizeZ
+
0.5
f
)
*
cSim
.
periodicBoxSizeZ
;
d
.
z
-=
floor
(
d
.
z
/
cSim
.
periodicBoxSizeZ
+
0.5
f
)
*
cSim
.
periodicBoxSizeZ
;
float
r2
=
DOT3
(
d
,
d
);
float
r2
=
DOT3
(
d
,
d
);
float
inverseR
=
1.0
f
/
sqrt
(
r2
);
float
inverseR
=
1.0
f
/
sqrt
(
r2
);
float
sig2
=
inverseR
*
LJ14
.
y
;
float
sig2
=
inverseR
*
LJ14
.
y
;
...
...
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