66 for (lo=0; lo<n && xOld[lo]>
x; ++lo)
72 for (
label i=low; i<
n; ++i)
74 if (xOld[i] > xOld[lo] && xOld[i] <= x)
82 for (hi=0; hi<n && xOld[hi]<
x; ++hi)
88 for (
label i=high; i<
n; ++i)
90 if (xOld[i] < xOld[hi] && xOld[i] >= x)
98 if (lo<n && hi<n && lo != hi)
101 + ((x - xOld[lo])/(xOld[hi] - xOld[lo]))*(yOld[hi] - yOld[lo]);
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
void size(const label)
Override size to be inconsistent with allocated storage.
Interpolates y values from one curve to another with a different x distribution.
Field< Type > interpolateXY(const scalarField &xNew, const scalarField &xOld, const Field< Type > &yOld)
Specialisations of Field<T> for scalar, vector and tensor.