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
0637a4ce
Commit
0637a4ce
authored
Feb 26, 2013
by
Peter Eastman
Browse files
Fixed compilation error on Windows
parent
133c1a52
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
platforms/cuda/src/CudaContext.cpp
platforms/cuda/src/CudaContext.cpp
+5
-3
No files found.
platforms/cuda/src/CudaContext.cpp
View file @
0637a4ce
...
@@ -905,9 +905,11 @@ template <class Real, class Real4, class Mixed, class Mixed4>
...
@@ -905,9 +905,11 @@ template <class Real, class Real4, class Mixed, class Mixed4>
void
CudaContext
::
reorderAtomsImpl
(
bool
enforcePeriodic
)
{
void
CudaContext
::
reorderAtomsImpl
(
bool
enforcePeriodic
)
{
// Find the range of positions and the number of bins along each axis.
// Find the range of positions and the number of bins along each axis.
vector
<
Real4
>
oldPosq
(
paddedNumAtoms
,
(
Real4
)
{
0
,
0
,
0
,
0
});
Real4
padding
=
{
0
,
0
,
0
,
0
};
vector
<
Real4
>
oldPosqCorrection
(
paddedNumAtoms
,
(
Real4
)
{
0
,
0
,
0
,
0
});
vector
<
Real4
>
oldPosq
(
paddedNumAtoms
,
padding
);
vector
<
Mixed4
>
oldVelm
(
paddedNumAtoms
,
(
Mixed4
)
{
0
,
0
,
0
,
0
});
vector
<
Real4
>
oldPosqCorrection
(
paddedNumAtoms
,
padding
);
Mixed4
paddingMixed
=
{
0
,
0
,
0
,
0
};
vector
<
Mixed4
>
oldVelm
(
paddedNumAtoms
,
paddingMixed
);
posq
->
download
(
oldPosq
);
posq
->
download
(
oldPosq
);
velm
->
download
(
oldVelm
);
velm
->
download
(
oldVelm
);
if
(
useMixedPrecision
)
if
(
useMixedPrecision
)
...
...
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