error->one(FLERR,"Support for MEAM potentials with non-uniform cubic splines has not been enabled in the MEAM potential code. Set SPLINE_MEAM_SUPPORT_NON_GRID_SPLINES in pair_spline_meam.h to 1 to enable it");
#endif
// Shift the spline to X=0 to speed up interpolation.
for(inti=0;i<N;i++){
Xs[i]=X[i]-xmin;
#if !SPLINE_MEAM_SUPPORT_NON_GRID_SPLINES
if(i<N-1)Ydelta[i]=(Y[i+1]-Y[i])/h;
Y2[i]/=h*6.0;
#endif
}
xmax_shifted=xmax-xmin;
}
/// Broadcasts the spline function parameters to all processors.