Changeset 4061 in Sophya for trunk/Cosmo/SimLSS/cmvtstpk.cc
- Timestamp:
- Apr 17, 2012, 11:21:23 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Cosmo/SimLSS/cmvtstpk.cc
r3821 r4061 80 80 if(optind<narg) zval = atof(arg[optind]); 81 81 82 cout<<"h100="<<h100<<" Om0="<<Om0<<" Ob0="<<Ob0<<" O l0="<<Ol0<<" w0="<<w0<<endl;82 cout<<"h100="<<h100<<" Om0="<<Om0<<" Ob0="<<Ob0<<" Ocdm="<<Om0-Ob0<<" Ol0="<<Ol0<<" w0="<<w0<<endl; 83 83 cout<<"lkmin="<<lkmin<<" lkmax="<<lkmax<<" npt="<<npt<<" dlk="<<dlk<<endl; 84 84 cout<<"scale="<<scale<<endl; … … 91 91 92 92 TransfertEisenstein tf(h100,Om0-Ob0,Ob0,T_CMB_Par,false); 93 cout<<"kpeak="<<tf.KPeak()<<endl; 93 double tf0 = tf(0); 94 cout<<"kpeak="<<tf.KPeak()<<endl; 94 95 TransfertEisenstein tfnosc2(tf); tfnosc2.SetNoOscEnv(2); 96 double tfnosc20 = tfnosc2(0); 95 97 TransfertEisenstein tfnosc1(tf); tfnosc1.SetNoOscEnv(1); 98 double tfnosc10 = tfnosc1(0); 96 99 TransfertEisenstein tfnob(h100,Om0,0.,T_CMB_Par,true); 100 double tfnob0 = tfnob(0); 101 cout<<"tf(0)="<<tf0<<" tfnosc2(0)="<<tfnosc20<<" tfnosc1(0)="<<tfnosc10<<" tfnob(0)="<<tfnob0<<endl; 97 102 98 103 GrowthEisenstein d1(Om0,Ol0); 99 cout<<"GrowthFactor: "<<d1(zval)<<endl;104 cout<<"GrowthFactor: D1(0)="<<d1(0.)<<" D1("<<zval<<") = "<<d1(zval)<<endl; 100 105 101 106 PkSpecCalc pk0(pkini,tf,d1,0.); … … 173 178 fprintf(fdata,"# z= %g : k(Mpc^-1) pkini, tf pk0 pkz, tfnosc2 pk0nosc2 pkznosc2, ",zval); 174 179 fprintf(fdata,"tfnosc1 pk0nosc1 pkznosc1, tfnob pk0nob pkznob\n"); 180 int n = 0; 175 181 for(double lk=lkmin;lk<lkmax+dlk/2.;lk+=dlk) { 176 182 double k = pow(10.,lk); 177 fprintf(fdata,"% e %e %e %e %e %e %e %e %e %e %e %e %e %e\n",178 k,pkini(k),183 fprintf(fdata,"%d %e %e %e %e %e %e %e %e %e %e %e %e %e %e\n", 184 n,k,pkini(k), 179 185 tf(k),pk0(k),pkz(k,zval), 180 186 tfnosc2(k),pk0nosc2(k),pkznosc2(k,zval), 181 187 tfnosc1(k),pk0nosc1(k),pkznosc1(k,zval), 182 188 tfnob(k),pk0nob(k),pkznob(k,zval)); 189 n++; 183 190 } 184 191 fclose(fdata);
Note:
See TracChangeset
for help on using the changeset viewer.