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
e9534c15
Unverified
Commit
e9534c15
authored
Jun 22, 2022
by
Mike Henry
Committed by
GitHub
Jun 22, 2022
Browse files
add missing header and fix logic for including cmath (#3658)
parent
8292bb3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
platforms/reference/src/ReferenceTabulatedFunction.cpp
platforms/reference/src/ReferenceTabulatedFunction.cpp
+5
-8
No files found.
platforms/reference/src/ReferenceTabulatedFunction.cpp
View file @
e9534c15
...
@@ -33,12 +33,15 @@
...
@@ -33,12 +33,15 @@
#define NOMINMAX
#define NOMINMAX
#endif
#endif
#include <algorithm>
#include "ReferenceTabulatedFunction.h"
#include "ReferenceTabulatedFunction.h"
#include "openmm/OpenMMException.h"
#include "openmm/OpenMMException.h"
#include "openmm/internal/SplineFitter.h"
#include "openmm/internal/SplineFitter.h"
#i
fdef _MSC_VER
#i
nclude <cmath>
#ifdef _MSC_VER
#if _MSC_VER < 1800
#if _MSC_VER < 1800
/**
/**
* We need to define this ourselves, since Visual Studio is missing round() from cmath.
* We need to define this ourselves, since Visual Studio is missing round() from cmath.
...
@@ -46,13 +49,7 @@
...
@@ -46,13 +49,7 @@
static
int
round
(
double
x
)
{
static
int
round
(
double
x
)
{
return
(
int
)
(
x
+
0.5
);
return
(
int
)
(
x
+
0.5
);
}
}
#else
#endif
#include <cmath>
#endif // MSC_VER < 1800
#else
#include <cmath>
#endif
#endif
static
double
wrap
(
double
t
,
double
min
,
double
max
)
{
static
double
wrap
(
double
t
,
double
min
,
double
max
)
{
...
...
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