ViewVC Help
View File | Revision Log | Show Annotations | View Changeset | Root Listing
root/OpenMD/branches/development/src/math/CubicSpline.cpp
(Generate patch)

Comparing branches/development/src/math/CubicSpline.cpp (file contents):
Revision 1854 by gezelter, Wed Feb 20 15:39:39 2013 UTC vs.
Revision 1855 by gezelter, Tue Apr 2 18:31:51 2013 UTC

# Line 198 | Line 198 | RealType CubicSpline::getValueAt(RealType t) {
198    
199    if (!generated) generate();
200    
201 <  assert(t < data_.front().first);
202 <  assert(t > data_.back().first);
201 >  assert(t > data_.front().first);
202 >  assert(t < data_.back().first);
203  
204    //  Find the interval ( x[j], x[j+1] ) that contains or is nearest
205    //  to t.
# Line 237 | Line 237 | pair<RealType, RealType> CubicSpline::getValueAndDeriv
237  
238    if (!generated) generate();
239    
240 <  assert(t < data_.front().first);
241 <  assert(t > data_.back().first);
240 >  assert(t > data_.front().first);
241 >  assert(t < data_.back().first);
242  
243    //  Find the interval ( x[j], x[j+1] ) that contains or is nearest
244    //  to t.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines