--- branches/development/src/math/CubicSpline.cpp 2013/02/20 13:52:51 1849 +++ branches/development/src/math/CubicSpline.cpp 2013/04/02 18:31:51 1855 @@ -35,7 +35,7 @@ * * [1] Meineke, et al., J. Comp. Chem. 26, 252-271 (2005). * [2] Fennell & Gezelter, J. Chem. Phys. 124, 234104 (2006). - * [3] Sun, Lin & Gezelter, J. Chem. Phys. 128, 24107 (2008). + * [3] Sun, Lin & Gezelter, J. Chem. Phys. 128, 234107 (2008). * [4] Kuang & Gezelter, J. Chem. Phys. 133, 164101 (2010). * [5] Vardeman, Stocker & Gezelter, J. Chem. Theory Comput. 7, 834 (2011). */ @@ -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.