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
8c63200f
"platforms/cuda/tests/TestCudaSort.cpp" did not exist on "03cc3523d09c836fa8941ad2291c67d18ac96d85"
Commit
8c63200f
authored
Sep 23, 2010
by
Peter Eastman
Browse files
Fixed compilation errors
parent
fa088696
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
plugins/amoeba/platforms/reference/src/SimTKReference/AmoebaReferenceVdwForce.cpp
.../reference/src/SimTKReference/AmoebaReferenceVdwForce.cpp
+1
-0
serialization/src/SerializationNode.cpp
serialization/src/SerializationNode.cpp
+3
-3
serialization/src/dtoa.cpp
serialization/src/dtoa.cpp
+2
-2
No files found.
plugins/amoeba/platforms/reference/src/SimTKReference/AmoebaReferenceVdwForce.cpp
View file @
8c63200f
...
...
@@ -24,6 +24,7 @@
#include "AmoebaReferenceForce.h"
#include "AmoebaReferenceVdwForce.h"
#include <algorithm>
AmoebaReferenceVdwForce
::
AmoebaReferenceVdwForce
(
)
:
_nonbondedMethod
(
NoCutoff
)
{
...
...
serialization/src/SerializationNode.cpp
View file @
8c63200f
...
...
@@ -37,7 +37,7 @@ using namespace OpenMM;
using
namespace
std
;
extern
"C"
char
*
g_fmt
(
char
*
,
double
);
extern
"C"
double
strtod
(
const
char
*
s00
,
char
**
se
);
extern
"C"
double
strtod
2
(
const
char
*
s00
,
char
**
se
);
const
string
&
SerializationNode
::
getName
()
const
{
return
name
;
...
...
@@ -125,14 +125,14 @@ double SerializationNode::getDoubleProperty(const string& name) const {
map
<
string
,
string
>::
const_iterator
iter
=
properties
.
find
(
name
);
if
(
iter
==
properties
.
end
())
throw
OpenMMException
(
"Unknown property '"
+
name
+
"' in node '"
+
getName
()
+
"'"
);
return
strtod
(
iter
->
second
.
c_str
(),
NULL
);
return
strtod
2
(
iter
->
second
.
c_str
(),
NULL
);
}
double
SerializationNode
::
getDoubleProperty
(
const
string
&
name
,
double
defaultValue
)
const
{
map
<
string
,
string
>::
const_iterator
iter
=
properties
.
find
(
name
);
if
(
iter
==
properties
.
end
())
return
defaultValue
;
return
strtod
(
iter
->
second
.
c_str
(),
NULL
);
return
strtod
2
(
iter
->
second
.
c_str
(),
NULL
);
}
SerializationNode
&
SerializationNode
::
setDoubleProperty
(
const
string
&
name
,
double
value
)
{
...
...
serialization/src/dtoa.cpp
View file @
8c63200f
...
...
@@ -512,7 +512,7 @@ BCinfo { int dp0, dp1, dplen, dsign, e0, inexact, nd, nd0, rounding, scale, uflc
#define Kmax 7
#ifdef __cplusplus
extern
"C"
double
strtod
(
const
char
*
s00
,
char
**
se
);
extern
"C"
double
strtod
2
(
const
char
*
s00
,
char
**
se
);
extern
"C"
char
*
dtoa
(
double
d
,
int
mode
,
int
ndigits
,
int
*
decpt
,
int
*
sign
,
char
**
rve
);
#endif
...
...
@@ -2456,7 +2456,7 @@ retlow1:
#endif
/* NO_STRTOD_BIGCOMP */
double
strtod
strtod
2
#ifdef KR_headers
(
s00
,
se
)
CONST
char
*
s00
;
char
**
se
;
#else
...
...
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