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
6a83f3ee
Commit
6a83f3ee
authored
Dec 18, 2012
by
Peter Eastman
Browse files
Fixed compilation errors on some older compilers
parent
ce22c4ed
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
platforms/cuda/src/CudaIntegrationUtilities.cpp
platforms/cuda/src/CudaIntegrationUtilities.cpp
+1
-1
platforms/cuda/src/CudaKernels.cpp
platforms/cuda/src/CudaKernels.cpp
+1
-1
No files found.
platforms/cuda/src/CudaIntegrationUtilities.cpp
View file @
6a83f3ee
...
...
@@ -857,7 +857,7 @@ double CudaIntegrationUtilities::computeKineticEnergy(double timeShift) {
int
paddedNumParticles
=
context
.
getPaddedNumAtoms
();
long
long
*
force
=
(
long
long
*
)
context
.
getPinnedBuffer
();
context
.
getForce
().
download
(
force
);
double
forceScale
=
timeShift
/
0x100000000
;
double
forceScale
=
timeShift
/
0x100000000
LL
;
double
energy
=
0.0
;
if
(
context
.
getUseDoublePrecision
()
||
context
.
getUseMixedPrecision
())
{
vector
<
double4
>
velm
;
...
...
platforms/cuda/src/CudaKernels.cpp
View file @
6a83f3ee
...
...
@@ -288,7 +288,7 @@ void CudaUpdateStateDataKernel::getForces(ContextImpl& context, vector<Vec3>& fo
int
numParticles
=
context
.
getSystem
().
getNumParticles
();
int
paddedNumParticles
=
cu
.
getPaddedNumAtoms
();
forces
.
resize
(
numParticles
);
double
scale
=
1.0
/
(
double
)
0x100000000
;
double
scale
=
1.0
/
(
double
)
0x100000000
LL
;
for
(
int
i
=
0
;
i
<
numParticles
;
++
i
)
forces
[
order
[
i
]]
=
Vec3
(
scale
*
force
[
i
],
scale
*
force
[
i
+
paddedNumParticles
],
scale
*
force
[
i
+
paddedNumParticles
*
2
]);
}
...
...
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