diff --git a/Grid/algorithms/approx/Chebyshev.h b/Grid/algorithms/approx/Chebyshev.h index 130daf6c..3c679685 100644 --- a/Grid/algorithms/approx/Chebyshev.h +++ b/Grid/algorithms/approx/Chebyshev.h @@ -59,7 +59,7 @@ public: RealD diff = hi-lo; RealD delta = diff*1.0e-9; for (RealD x=lo; x + void Init(RealD _lo,RealD _hi,int _order, functor & func) + { + lo=_lo; + hi=_hi; + order=_order; + + if(order < 2) exit(-1); + Coeffs.resize(order); + for(int j=0;j