19 if (x >= xpts.back()) {
22 auto loc = lower_bound(xpts.begin(), xpts.end(), x);
23 int iloc = int(loc - xpts.begin()) - 1;
24 doublereal ff = fpts[iloc] +
25 (x - xpts[iloc])*(fpts[iloc + 1]
26 - fpts[iloc])/(xpts[iloc + 1] - xpts[iloc]);
std::vector< double > vector_fp
Turn on the use of stl vectors for the basic array type within cantera Vector of doubles.
Namespace for the Cantera kernel.
Header for a file containing miscellaneous numerical functions.
doublereal linearInterp(doublereal x, const vector_fp &xpts, const vector_fp &fpts)
Linearly interpolate a function defined on a discrete grid.