135 fftw_plan back_fft(
int, Tbl*&) ;
136 double* cheb_ini(
const int) ;
139 void citsinp(
const int* deg,
const int* dimc,
double* cf,
const int* dimf,
158 cout <<
"citsinp: nt > n2f : nt = " << nt <<
" , n2f = " 164 cout <<
"citsinp: nt > n2c : nt = " << nt <<
" , n2c = " 169 if ( (n1f > 1) && (n1c > n1f) ) {
170 cout <<
"citsinp: n1c > n1f : n1c = " << n1c <<
" , n1f = " 176 cout <<
"citsinp: n3c > n3f : n3c = " << n3c <<
" , n3f = " 188 fftw_plan p = back_fft(nm1, pg) ;
192 double* sinp = cheb_ini(nt);
197 int n2n3f = n2f * n3f ;
198 int n2n3c = n2c * n3c ;
206 int borne_phi = n1c-1 ;
207 if (n1f == 1) borne_phi = 1 ;
209 for (j=0; j< borne_phi; j++) {
213 for (k=0; k<n3c; k++) {
215 int i0 = n2n3c * j + k ;
216 double* cf0 = cf + i0 ;
219 double* ff0 = ff + i0 ;
242 for (i=2; i<nm1; i += 2 ) g.set(nm1-i/2) = - .5 * cf0[n3c*i] ;
251 g.set(0) = .5 * cf0[n3c] ;
252 for ( i = 1; i < nm1s2; i++ ) {
253 g.set(i) = .25 * ( cf0[ n3c*(2*i+1) ] - cf0[ n3c*(2*i-1) ] ) ;
255 g.set(nm1s2) = - .5 * cf0[ n3c*(nt-2) ] ;
267 for ( i = 1; i < nm1s2 ; i++ ) {
271 double fp = 0.5 * ( g(i) + g(isym) ) / sinp[i] ;
272 double fm = 0.5 * ( g(i) - g(isym) ) ;
273 ff0[ n3f*i ] = fp + fm ;
274 ff0[ n3f*isym ] = fp - fm ;
279 ff0[ n3f*nm1 ] = -2. * g(0) ;
280 ff0[ n3f*nm1s2 ] = g(nm1s2) ;