Changeset 3518 in Sophya for trunk/Cosmo/SimLSS/genefluct3d.h
- Timestamp:
- Sep 11, 2008, 12:37:39 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/genefluct3d.h
r3358 r3518 18 18 #include "pkspectrum.h" 19 19 20 #define WITH_FFTW_THREAD 21 //#define GEN3D_FLOAT 22 23 #if defined(GEN3D_FLOAT) 24 #define GEN3D_TYPE r_4 25 #define GEN3D_FFTW_PLAN fftwf_plan 26 #define GEN3D_FFTW_COMPLEX fftwf_complex 27 #else 28 #define GEN3D_TYPE r_8 29 #define GEN3D_FFTW_PLAN fftw_plan 30 #define GEN3D_FFTW_COMPLEX fftw_complex 31 #endif 20 32 21 33 namespace SOPHYA { … … 41 53 long LosComRedshift(double zinc=0.001,long npoints=-1); 42 54 43 TArray< complex< r_8> >& GetComplexArray(void) {return T_;}44 fftw_complex* GetComplexPointer(void) {return fdata_;}45 TArray< r_8>& GetRealArray(void) {return R_;}46 r_8* GetRealPointer(void) {return data_;}55 TArray< complex<GEN3D_TYPE> >& GetComplexArray(void) {return T_;} 56 GEN3D_FFTW_COMPLEX * GetComplexPointer(void) {return fdata_;} 57 TArray<GEN3D_TYPE>& GetRealArray(void) {return R_;} 58 GEN3D_TYPE* GetRealPointer(void) {return data_;} 47 59 48 60 // Pour adressage data_[ip] … … 157 169 158 170 // la gestion de la FFT 159 bool is_set_fft w_plan;160 fftw_planpf_,pb_;171 bool is_set_fft_plan; 172 GEN3D_FFTW_PLAN pf_,pb_; 161 173 unsigned short nthread_; 162 174 int lp_; … … 164 176 // le stockage du Cube de donnees et les pointeurs 165 177 bool array_allocated_; // true if array has been allocated 166 TArray< complex< r_8> > T_;167 fftw_complex*fdata_;168 TArray< r_8> R_;169 double*data_;178 TArray< complex<GEN3D_TYPE> > T_; 179 GEN3D_FFTW_COMPLEX *fdata_; 180 TArray<GEN3D_TYPE> R_; 181 GEN3D_TYPE *data_; 170 182 171 183 // l'observateur
Note:
See TracChangeset
for help on using the changeset viewer.