--- branches/development/src/math/CubicSpline.cpp 2013/02/20 15:39:39 1850 +++ branches/development/src/math/CubicSpline.cpp 2013/04/02 18:31:51 1855 @@ -198,8 +198,8 @@ RealType CubicSpline::getValueAt(RealType t) { if (!generated) generate(); - assert(t < data_.front().first); - assert(t > data_.back().first); + assert(t > data_.front().first); + assert(t < data_.back().first); // Find the interval ( x[j], x[j+1] ) that contains or is nearest // to t. @@ -237,8 +237,8 @@ pair CubicSpline::getValueAndDeriv if (!generated) generate(); - assert(t < data_.front().first); - assert(t > data_.back().first); + assert(t > data_.front().first); + assert(t < data_.back().first); // Find the interval ( x[j], x[j+1] ) that contains or is nearest // to t.