- if ( x > table[i][0] ) {
- FG_LOG( FG_MATH, FG_ALERT,
- "fgInterpolateInit(): lookup error, x to big = " << x );
- return(0.0);
+ // cout << " table[size-1][0] = " << table[size-1][0] << endl;
+ if ( x > table[size-1][0] ) {
+ SG_LOG( SG_MATH, SG_DEBUG,
+ "interpolate(): lookup error, x to big = " << x );
+ return table[size-1][1];