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
611bd817
Unverified
Commit
611bd817
authored
Feb 13, 2023
by
bdenhollander
Committed by
GitHub
Feb 13, 2023
Browse files
Remove unused offset variables (#3961)
- Appear to be copy and pasted from getPositions and were not removed
parent
d5a4ce06
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
platforms/opencl/src/OpenCLKernels.cpp
platforms/opencl/src/OpenCLKernels.cpp
+0
-2
No files found.
platforms/opencl/src/OpenCLKernels.cpp
View file @
611bd817
...
@@ -243,7 +243,6 @@ void OpenCLUpdateStateDataKernel::getVelocities(ContextImpl& context, vector<Vec
...
@@ -243,7 +243,6 @@ void OpenCLUpdateStateDataKernel::getVelocities(ContextImpl& context, vector<Vec
cl
.
getVelm
().
download
(
velm
);
cl
.
getVelm
().
download
(
velm
);
for
(
int
i
=
0
;
i
<
numParticles
;
++
i
)
{
for
(
int
i
=
0
;
i
<
numParticles
;
++
i
)
{
mm_double4
vel
=
velm
[
i
];
mm_double4
vel
=
velm
[
i
];
mm_int4
offset
=
cl
.
getPosCellOffsets
()[
i
];
velocities
[
order
[
i
]]
=
Vec3
(
vel
.
x
,
vel
.
y
,
vel
.
z
);
velocities
[
order
[
i
]]
=
Vec3
(
vel
.
x
,
vel
.
y
,
vel
.
z
);
}
}
}
}
...
@@ -252,7 +251,6 @@ void OpenCLUpdateStateDataKernel::getVelocities(ContextImpl& context, vector<Vec
...
@@ -252,7 +251,6 @@ void OpenCLUpdateStateDataKernel::getVelocities(ContextImpl& context, vector<Vec
cl
.
getVelm
().
download
(
velm
);
cl
.
getVelm
().
download
(
velm
);
for
(
int
i
=
0
;
i
<
numParticles
;
++
i
)
{
for
(
int
i
=
0
;
i
<
numParticles
;
++
i
)
{
mm_float4
vel
=
velm
[
i
];
mm_float4
vel
=
velm
[
i
];
mm_int4
offset
=
cl
.
getPosCellOffsets
()[
i
];
velocities
[
order
[
i
]]
=
Vec3
(
vel
.
x
,
vel
.
y
,
vel
.
z
);
velocities
[
order
[
i
]]
=
Vec3
(
vel
.
x
,
vel
.
y
,
vel
.
z
);
}
}
}
}
...
...
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