Changeset 3344 in Sophya for trunk/Cosmo/SimLSS/cmvdefsurv.cc


Ignore:
Timestamp:
Oct 9, 2007, 10:43:47 AM (18 years ago)
Author:
cmv
Message:

set schechter mmin=1e8 -> 1e7 cmv 09/10/2007

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosmo/SimLSS/cmvdefsurv.cc

    r3343 r3344  
    299299 cout<<"mstar*sch(mstar) = "<<sch(mstar)<<" Msol/Mpc^3/Msol"<<endl;
    300300 int npt = 10000;
    301  double lnx1=log10(1e+6), lnx2=log10(1e+14), dlnx=(lnx2-lnx1)/npt;
     301 double lnx1=log10(1.e+6), lnx2=log10(1.e+13), dlnx=(lnx2-lnx1)/npt;
    302302 double masshimpc3 = IntegrateFuncLog(sch,lnx1,lnx2,0.001,dlnx,10.*dlnx,6);
    303303 cout<<"Mass density: "<<masshimpc3<<" Msol/Mpc^3"<<endl;
     
    312312 cout<<"\nsch(mstar) = "<<sch(mstar)<<" /Mpc^3/Msol"<<endl;
    313313 cout<<"Galaxy number density:"<<endl;
    314  for(double x=lnx1; x<10.5; x+=1.) {
     314 for(double x=lnx1; x<lnx2-0.5; x+=1.) {
    315315   double n = IntegrateFuncLog(sch,x,lnx2,0.001,dlnx,10.*dlnx,6);
    316316   cout<<"  m>"<<x<<" Msol: "<<n<<" /Mpc^3, "<<n*dvol<<" /pixel, "
Note: See TracChangeset for help on using the changeset viewer.