Changeset 3782 in Sophya for trunk/Cosmo/SimLSS/cmvginit3d.cc
- Timestamp:
- Jun 7, 2010, 5:57:28 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/cmvginit3d.cc
r3781 r3782 24 24 void usage(void) 25 25 { 26 cout<<"cmv observ3d [...options...]"<<endl26 cout<<"cmvginit3d [...options...]"<<endl 27 27 <<" -a : auto init random seed (needed for multiple simul)"<<endl 28 28 <<" -G typevol: compute Pk(z=0) and apply growth factor in real space"<<endl … … 44 44 <<" temporary save cube in temp_file.ppf"<<endl 45 45 <<" -n nent : fill control ntuple with nent entries (def: do not fill)"<<endl 46 <<" -O a,b : tell what you want to write (with the -W and -P options)"<<endl46 <<" -O a,b : tell what you want to write"<<endl 47 47 <<" a : write generated fourier cube (_k0)"<<endl 48 48 <<" b : write real space cube dRho/Rho at z (_r0)"<<endl 49 49 <<" a,b= 0 no write, 1 ppf write, 2 fits write, 3 ppf+fits write"<<endl 50 50 <<" -S : write cube slices in PPF format"<<endl 51 <<" -o root_name_out : root string for output file name (def: cmvobserv3d)"<<endl51 <<" -o out_base_name : base string for output file name (def: cmvginit3d)"<<endl 52 52 <<" -V : compute variance from real space (for check, default: no)"<<endl 53 53 <<" -T nth : nombre de threads (si compil multi-thread, default: 0)"<<endl … … 221 221 222 222 TransfertEisenstein tf(h100,om0-ob0,ob0,T_CMB_Par,false); 223 //tf.SetNoOscEnv(2); 223 TransfertEisenstein tfnos(h100,om0-ob0,ob0,T_CMB_Par,false); 224 tfnos.SetNoOscEnv(2); 224 225 225 226 GrowthFactor growth(om0,ol0); … … 229 230 230 231 PkSpectrum0 pk0(pkini,tf); 232 PkSpectrum0 pk0nos(pkini,tfnos); 231 233 232 234 PkSpectrumZ pkz(pk0,growth,zref); 235 PkSpectrumZ pkznos(pk0nos,growth,zref); 233 236 234 237 //----------------------------------------------------------------- 235 238 pkz.SetZ(0.); 239 pkznos.SetZ(0.); 236 240 cout<<endl<<"\n--- Compute variance for top-hat R="<<R<<" at z="<<pkz.GetZ()<<endl; 237 241 VarianceSpectrum varpk_th(pkz,R,VarianceSpectrum::TOPHAT); … … 251 255 double normpkz = sigmaR*sigmaR/sr2; 252 256 pkz.SetScale(normpkz); 257 pkznos.SetScale(normpkz); 253 258 cout<<"Spectrum normalisation = "<<pkz.GetScale()<<endl; 254 259 { … … 256 261 FuncToHisto(pkz,hpkz0,true); 257 262 posobs.PutObject(hpkz0,"hpkz0"); 263 Histo hpkz0nos(hpkz0); 264 FuncToHisto(pkznos,hpkz0nos,true); 265 posobs.PutObject(hpkz0nos,"hpkz0nos"); 258 266 } 259 267 260 268 pkz.SetZ(zref); 269 pkznos.SetZ(zref); 261 270 { 262 271 Histo hpkz(lkmin,lkmax,npt); hpkz.ReCenterBin(); 263 272 FuncToHisto(pkz,hpkz,true); 264 273 posobs.PutObject(hpkz,"hpkz"); 274 Histo hpkznos(hpkz); 275 FuncToHisto(pkznos,hpkznos,true); 276 posobs.PutObject(hpkznos,"hpkznos"); 265 277 } 266 278
Note:
See TracChangeset
for help on using the changeset viewer.