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
310d2602
Commit
310d2602
authored
Jul 15, 2009
by
Michael Sherman
Browse files
Eliminate some double->float warnings in VC++.
parent
5510508f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
platforms/reference/src/ReferenceKernels.cpp
platforms/reference/src/ReferenceKernels.cpp
+2
-2
No files found.
platforms/reference/src/ReferenceKernels.cpp
View file @
310d2602
...
...
@@ -410,7 +410,7 @@ void ReferenceCalcNonbondedForceKernel::initialize(const System& system, const N
if
(
kmax
[
2
]
%
2
==
0
)
kmax
[
2
]
++
;
}
rfDielectric
=
force
.
getReactionFieldDielectric
();
rfDielectric
=
(
RealOpenMM
)
force
.
getReactionFieldDielectric
();
}
void
ReferenceCalcNonbondedForceKernel
::
executeForces
(
ContextImpl
&
context
)
{
...
...
@@ -973,7 +973,7 @@ void ReferenceRemoveCMMotionKernel::execute(ContextImpl& context) {
momentum
[
0
]
+=
static_cast
<
RealOpenMM
>
(
masses
[
i
]
*
velData
[
i
][
0
]
);
momentum
[
1
]
+=
static_cast
<
RealOpenMM
>
(
masses
[
i
]
*
velData
[
i
][
1
]
);
momentum
[
2
]
+=
static_cast
<
RealOpenMM
>
(
masses
[
i
]
*
velData
[
i
][
2
]
);
mass
+=
masses
[
i
];
mass
+=
static_cast
<
RealOpenMM
>
(
masses
[
i
]
)
;
}
// Adjust the particle velocities.
...
...
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