Changeset 3770 in Sophya for trunk/Cosmo/SimLSS/genefluct3d.h
- Timestamp:
- May 7, 2010, 7:32:40 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/genefluct3d.h
r3768 r3770 22 22 #define WITH_FFTW_THREAD 23 23 24 //NE PAS DECOMMENTER, UTILISEZ LA MAKEFILE ("g++ - DGEN3D_FLOAT ...")24 //NE PAS DECOMMENTER, UTILISEZ LA MAKEFILE ("g++ -c -DGEN3D_FLOAT ...") 25 25 #if defined(GEN3D_FLOAT) 26 26 #define GEN3D_TYPE r_4 … … 85 85 86 86 // Return |K_i| module relative to pixel indices 87 inline r_8 Kx(long i) {long ii=(i>Nx_/2)? Nx_-i :i; return ii*Dkx_;} 88 inline r_8 Ky(long j) {long jj=(j>Ny_/2)? Ny_-j :j; return jj*Dky_;} 87 inline r_8 AbsKx(long i) {long ii=(i>Nx_/2)? Nx_-i :i; return ii*Dkx_;} 88 inline r_8 AbsKy(long j) {long jj=(j>Ny_/2)? Ny_-j :j; return jj*Dky_;} 89 inline r_8 AbsKz(long l) {return l*Dkz_;} 90 inline r_8 Kx(long i) {long ii=(i>Nx_/2)? i-Nx_ :i; return ii*Dkx_;} 91 inline r_8 Ky(long j) {long jj=(j>Ny_/2)? j-Ny_ :j; return jj*Dky_;} 89 92 inline r_8 Kz(long l) {return l*Dkz_;} 90 93 … … 109 112 double DrefPk(void) 110 113 {return (growth_!=NULL && compute_pk_redsh_ref_>=0.) ? (*growth_)(compute_pk_redsh_ref_): -999.;} 114 double Href(void) {return h_ref_;} 111 115 112 116 void ComputeFourier0(PkSpectrumZ& pk_at_z); 113 117 void ComputeFourier(PkSpectrumZ& pk_at_z); 114 118 void FilterByPixel(void); 115 void ToVel Trans(void);119 void ToVelLoS(void); 116 120 117 121 void ComputeReal(void); … … 202 206 double redsh_ref_,kredsh_ref_,dred_ref_; 203 207 double compute_pk_redsh_ref_; 204 double h_ref , loscom_ref_,dtrc_ref_, dlum_ref_, dang_ref_;208 double h_ref_, loscom_ref_,dtrc_ref_, dlum_ref_, dang_ref_; 205 209 double growth_ref_, dsdz_growth_ref_; 206 210 double nu_ref_, dnu_ref_ ;
Note:
See TracChangeset
for help on using the changeset viewer.