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
9cd18aeb
Commit
9cd18aeb
authored
Sep 03, 2014
by
peastman
Browse files
Bug fix
parent
aa970221
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
platforms/cuda/src/CudaKernels.cpp
platforms/cuda/src/CudaKernels.cpp
+1
-1
platforms/opencl/src/OpenCLKernels.cpp
platforms/opencl/src/OpenCLKernels.cpp
+1
-1
No files found.
platforms/cuda/src/CudaKernels.cpp
View file @
9cd18aeb
...
...
@@ -4784,7 +4784,7 @@ void CudaCalcCustomManyParticleForceKernel::initialize(const System& system, con
}
for
(
int
i
=
0
;
i
<
particlesPerSet
;
i
++
)
{
if
(
hasTypeFilters
)
permute
<<
"int atom"
<<
(
i
+
1
)
<<
" = particleSet[particleOrder["
<<
numTypes
<<
"*order+"
<<
i
<<
"]];
\n
"
;
permute
<<
"int atom"
<<
(
i
+
1
)
<<
" = particleSet[particleOrder["
<<
particlesPerSet
<<
"*order+"
<<
i
<<
"]];
\n
"
;
else
permute
<<
"int atom"
<<
(
i
+
1
)
<<
" = p"
<<
(
i
+
1
)
<<
";
\n
"
;
loadData
<<
"real3 pos"
<<
(
i
+
1
)
<<
" = trim(posq[atom"
<<
(
i
+
1
)
<<
"]);
\n
"
;
...
...
platforms/opencl/src/OpenCLKernels.cpp
View file @
9cd18aeb
...
...
@@ -4944,7 +4944,7 @@ void OpenCLCalcCustomManyParticleForceKernel::initialize(const System& system, c
}
for
(
int
i
=
0
;
i
<
particlesPerSet
;
i
++
)
{
if
(
hasTypeFilters
)
permute
<<
"int atom"
<<
(
i
+
1
)
<<
" = particleSet[particleOrder["
<<
numTypes
<<
"*order+"
<<
i
<<
"]];
\n
"
;
permute
<<
"int atom"
<<
(
i
+
1
)
<<
" = particleSet[particleOrder["
<<
particlesPerSet
<<
"*order+"
<<
i
<<
"]];
\n
"
;
else
permute
<<
"int atom"
<<
(
i
+
1
)
<<
" = p"
<<
(
i
+
1
)
<<
";
\n
"
;
loadData
<<
"real4 pos"
<<
(
i
+
1
)
<<
" = posq[atom"
<<
(
i
+
1
)
<<
"];
\n
"
;
...
...
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