46 namespace LibUtilities
55 ASSERTL0(!(npts%2),
"Fourier points need to be of even order");
64 for(
unsigned int i=0;i<
npts;++i)
83 for(
unsigned int i=0; i<
npts; ++i)
97 for(
unsigned int i=1;i<
npts;++i)
102 for(
unsigned int i=1;i<
npts;++i)
107 for(
unsigned int i=1;i<
npts;++i)
109 for(
unsigned int j=0;j<
npts;++j)
120 returnval->Initialize();
129 Array<OneD, const NekDouble> xpoints;
134 return GetI(numpoints, xpoints);
139 ASSERTL0(pkey.
GetPointsDim()==1,
"Fourier Points can only interp to other 1d point distributions");
149 return GetI(numpoints, x);
152 const boost::shared_ptr<NekMatrix<NekDouble> >
FourierPoints::GetI(
unsigned int numpoints,
const Array<OneD, const NekDouble>& x)
154 Array<OneD, NekDouble> interp(
GetNumPoints()*numpoints);
160 boost::shared_ptr< NekMatrix<NekDouble> > returnval(
MemoryManager<NekMatrix<NekDouble> >::AllocateSharedPtr(numpoints,np,t));
168 for(
unsigned int i=0;i<
npts;++i)
187 y = sin(M_PI*x/(M_PI*h))/((2.0/h)*tan(0.5*x));