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
ff7931dc
"openmmapi/vscode:/vscode.git/clone" did not exist on "f8dc7aa13a45a1a50d35fdc699bff23a6a2532e2"
Commit
ff7931dc
authored
Apr 26, 2012
by
Mark Friedrichs
Browse files
round() not recognized on Windows
parent
43443ca4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
plugins/amoeba/platforms/cuda/src/kernels/amoebaCudaGpu.cpp
plugins/amoeba/platforms/cuda/src/kernels/amoebaCudaGpu.cpp
+4
-3
No files found.
plugins/amoeba/platforms/cuda/src/kernels/amoebaCudaGpu.cpp
View file @
ff7931dc
...
...
@@ -2266,8 +2266,8 @@ static void getVdwTaper( double r, double vdwTaperCoefficients[6], double* taper
static
void
lookupVdwTaperLinear
(
float
r
,
double
vdwTaperCut
,
double
delta
,
std
::
vector
<
float
>&
taperTable
,
std
::
vector
<
float
>&
dtaperTable
,
float
*
taper
,
float
*
dtaper
){
//
int index = static_cast<int>(floor( (r - vdwTaperCut)/delta));
int
index
=
static_cast
<
int
>
(
round
(
(
r
-
vdwTaperCut
)
/
delta
));
int
index
=
static_cast
<
int
>
(
floor
(
(
r
-
vdwTaperCut
)
/
delta
));
//
int index = static_cast<int>(round( (r - vdwTaperCut)/delta));
if
(
index
>
taperTable
.
size
()
-
1
){
*
taper
=
*
dtaper
=
0.0
f
;
}
else
{
...
...
@@ -2288,7 +2288,8 @@ static void lookupVdwTaperLinear( float r, double vdwTaperCut, double delta,
static
void
lookupVdwTaper
(
float
r
,
double
vdwTaperCut
,
double
delta
,
std
::
vector
<
float
>&
taperTable
,
std
::
vector
<
float
>&
dtaperTable
,
float
*
taper
,
float
*
dtaper
){
int
index
=
static_cast
<
int
>
(
round
(
(
r
-
vdwTaperCut
)
/
delta
));
//int index = static_cast<int>(round( (r - vdwTaperCut)/delta));
int
index
=
static_cast
<
int
>
(
floor
(
(
r
-
vdwTaperCut
)
/
delta
));
if
(
index
>
taperTable
.
size
()
-
2
){
*
taper
=
*
dtaper
=
0.0
f
;
}
else
if
(
index
==
0
){
...
...
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