@@ -70,12 +70,11 @@ void flag_core_allocate_f_real(double **f, int L, int N)
7070
7171void flag_core_analysis (complex double * flmn ,
7272 const complex double * f ,
73- double R , int L , int N )
73+ int L , double tau , int N , int spin )
7474{
7575 assert (L > 0 );
7676 assert (N > 1 );
7777 //const int alpha = ALPHA;
78- int spin = 0 ;
7978 int verbosity = 0 ;
8079 int n ;
8180 int flmsize = ssht_flm_size (L );
@@ -97,10 +96,10 @@ void flag_core_analysis(complex double *flmn,
9796 double * weights = (double * )calloc (N , sizeof (double ));
9897 assert (nodes != NULL );
9998 assert (weights != NULL );
100- flag_spherlaguerre_sampling (nodes , weights , R , N );
99+ flag_spherlaguerre_sampling (nodes , weights , tau , N );
101100 //printf("> Mapped spherical Laguerre transform...");
102101 fflush (NULL );
103- flag_spherlaguerre_mapped_analysis (flmn , flmr , nodes , weights , N , flmsize );
102+ flag_spherlaguerre_mapped_analysis (flmn , flmr , nodes , weights , tau , N , flmsize );
104103 //printf("done\n");
105104 free (nodes );
106105 free (weights );
@@ -111,13 +110,12 @@ void flag_core_analysis(complex double *flmn,
111110void flag_core_synthesis (complex double * f ,
112111 const complex double * flmn ,
113112 const double * nodes , int Nnodes ,
114- int L , int N )
113+ int L , double tau , int N , int spin )
115114{
116115 assert (L > 0 );
117116 assert (N > 1 );
118117 assert (nodes != NULL );
119118 //const int alpha = ALPHA;
120- int spin = 0 ;
121119 int verbosity = 0 ;
122120 int n , offset_lm , offset_r ;
123121 int flmsize = ssht_flm_size (L );
@@ -127,7 +125,7 @@ void flag_core_synthesis(complex double *f,
127125 complex double * flmr ;
128126 flag_core_allocate_flmn (& flmr , L , Nnodes );
129127 //printf("> Mapped spherical Laguerre transform...");fflush(NULL);
130- flag_spherlaguerre_mapped_synthesis (flmr , flmn , nodes , Nnodes , N , flmsize );
128+ flag_spherlaguerre_mapped_synthesis (flmr , flmn , nodes , Nnodes , tau , N , flmsize );
131129 //printf("done\n");
132130
133131 for (n = 0 ; n < Nnodes ; n ++ ){
@@ -141,7 +139,7 @@ void flag_core_synthesis(complex double *f,
141139}
142140
143141void flag_core_analysis_real (complex double * flmn ,
144- const double * f , double R , int L , int N )
142+ const double * f , int L , double tau , int N )
145143{
146144 assert (L > 0 );
147145 assert (N > 1 );
@@ -165,10 +163,10 @@ void flag_core_analysis_real(complex double *flmn,
165163 double * weights = (double * )calloc (N , sizeof (double ));
166164 assert (nodes != NULL );
167165 assert (weights != NULL );
168- flag_spherlaguerre_sampling (nodes , weights , R , N );
166+ flag_spherlaguerre_sampling (nodes , weights , tau , N );
169167 //printf("> Mapped spherical Laguerre transform...");
170168 fflush (NULL );
171- flag_spherlaguerre_mapped_analysis (flmn , flmr , nodes , weights , N , flmsize );
169+ flag_spherlaguerre_mapped_analysis (flmn , flmr , nodes , weights , tau , N , flmsize );
172170 //printf("done\n");
173171 free (nodes );
174172 free (weights );
@@ -178,7 +176,7 @@ void flag_core_analysis_real(complex double *flmn,
178176void flag_core_synthesis_real (double * f ,
179177 const complex double * flmn ,
180178 const double * nodes , int Nnodes ,
181- int L , int N )
179+ int L , double tau , int N )
182180{
183181 assert (L > 0 );
184182 assert (N > 1 );
@@ -191,7 +189,7 @@ void flag_core_synthesis_real(double *f,
191189 complex double * flmr ;
192190 //printf("> Mapped spherical Laguerre transform...");fflush(NULL);
193191 flag_core_allocate_flmn (& flmr , L , Nnodes );
194- flag_spherlaguerre_mapped_synthesis (flmr , flmn , nodes , Nnodes , N , flmsize );
192+ flag_spherlaguerre_mapped_synthesis (flmr , flmn , nodes , Nnodes , tau , N , flmsize );
195193 //printf("done\n");
196194
197195 for (n = 0 ; n < Nnodes ; n ++ ){
@@ -355,7 +353,7 @@ void flag_spherbessel_basis(double *jell, const int ell, const double *nodes, in
355353
356354void flag_core_fourierbessel_analysis (complex double * flmn ,
357355 const complex double * f ,
358- double R , int L , int N )
356+ int L , double tau , int N )
359357{
360358 assert (L > 0 );
361359 assert (N > 1 );
@@ -382,10 +380,10 @@ void flag_core_fourierbessel_analysis(complex double *flmn,
382380 double * weights = (double * )calloc (N , sizeof (double ));
383381 assert (nodes != NULL );
384382 assert (weights != NULL );
385- flag_spherlaguerre_sampling (nodes , weights , R , N );
383+ flag_spherlaguerre_sampling (nodes , weights , tau , N );
386384 //printf("> Mapped spherical Laguerre transform...");
387385 fflush (NULL );
388- flag_spherlaguerre_mapped_analysis (flmn , flmr , nodes , weights , N , flmsize );
386+ flag_spherlaguerre_mapped_analysis (flmn , flmr , nodes , weights , tau , N , flmsize );
389387 //printf("done\n");
390388 free (nodes );
391389 free (weights );
@@ -396,7 +394,7 @@ void flag_core_fourierbessel_analysis(complex double *flmn,
396394void flag_core_fourierbessel_synthesis (complex double * f ,
397395 const complex double * flmn ,
398396 const double * nodes , int Nnodes ,
399- int L , int N )
397+ int L , double tau , int N )
400398{
401399 assert (L > 0 );
402400 assert (N > 1 );
@@ -412,7 +410,7 @@ void flag_core_fourierbessel_synthesis(complex double *f,
412410 complex double * flmr ;
413411 flag_core_allocate_flmn (& flmr , L , Nnodes );
414412 //printf("> Mapped spherical Laguerre transform...");fflush(NULL);
415- flag_spherlaguerre_mapped_synthesis (flmr , flmn , nodes , Nnodes , N , flmsize );
413+ flag_spherlaguerre_mapped_synthesis (flmr , flmn , nodes , Nnodes , tau , N , flmsize );
416414 //printf("done\n");
417415
418416 for (n = 0 ; n < Nnodes ; n ++ ){
0 commit comments