--- trunk/src/math/CubicSpline.cpp 2015/03/03 15:35:45 2058 +++ trunk/src/math/CubicSpline.cpp 2015/03/07 21:41:51 2071 @@ -50,7 +50,7 @@ using namespace std; using namespace OpenMD; using namespace std; -CubicSpline::CubicSpline() : generated(false), isUniform(true) { +CubicSpline::CubicSpline() : isUniform(true), generated(false) { x_.clear(); y_.clear(); } @@ -83,7 +83,8 @@ void CubicSpline::generate() { // d = vector of S'''(x_[i]+)/6 values (i < n). // Local variables: - RealType fp1, fpn, h, p; + RealType fp1, fpn, p; + RealType h(0.0); // make sure the sizes match