Changeset 3284 in Sophya for trunk/Cosmo/SimLSS


Ignore:
Timestamp:
Jul 27, 2007, 12:03:29 PM (18 years ago)
Author:
cmv
Message:

Creation de cmvschdist.cc cmv 27/07/2007

Location:
trunk/Cosmo/SimLSS
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Cosmo/SimLSS/Makefile

    r3281 r3284  
    2020       $(EXE)cmvdefsurv $(EXE)cmvobserv3d $(EXE)cmvtintfun \
    2121       $(EXE)cmvtpoisson $(EXE)cmvconcherr $(EXE)cmvtinterp \
    22        $(EXE)cmvtstagn
     22       $(EXE)cmvtstagn $(EXE)cmvschdist
    2323#$(EXE)cmvtluc
    2424 
     
    2828          $(OBJ)cmvobserv3d.o $(OBJ)cmvtintfun.o $(OBJ)cmvtinterp.o \
    2929          $(OBJ)cmvtpoisson.o $(OBJ)cmvconcherr.o $(OBJ)cmvtluc.o \
    30           $(OBJ)cmvtstagn.o
     30          $(OBJ)cmvtstagn.o $(OBJ)cmvschdist.o
    3131 
    3232LIBROBJ = \
     
    183183
    184184##############################################################################
     185cmvschdist: $(EXE)cmvschdist
     186        echo $@ " done"
     187$(EXE)cmvschdist: $(OBJ)cmvschdist.o $(LIB)libcmvsimbao.a
     188        $(CXXLINK) $(CXXREP) -o $@ $(OBJ)cmvschdist.o $(MYLIB)
     189$(OBJ)cmvschdist.o: cmvschdist.cc
     190        $(CXXCOMPILE) $(CXXREP) -I$(MYEXTINC) -o $@ cmvschdist.cc
     191
     192
     193
     194##############################################################################
    185195cmvtluc: $(EXE)cmvtluc
    186196        echo $@ " done"
  • trunk/Cosmo/SimLSS/cmvconcherr.cc

    r3282 r3284  
    314314zone
    315315n/plot herrconc.val%log10(x) x>0 ! "connectpoints"
     316n/plot herrconc.val-sqrt(err2)%log10(x) x>0&&err2>0 ! "connectpoints same red"
     317n/plot herrconc.val+sqrt(err2)%log10(x) x>0&&err2>0 ! "connectpoints same red"
     318
    316319n/plot herrconc.sqrt(err2)%log10(x) x>0&&err2>0 ! "connectpoints same red"
    317 
    318320n/plot herrconc.sqrt(err2)/val%log10(x) x>0&&err2>0&&val>0 ! "connectpoints"
    319321
     
    334336
    335337imag cor
     338n/plot cor.val%c r==500 ! "connectpoints"
    336339
    337340####
  • trunk/Cosmo/SimLSS/cmvtstsch.cc

    r3249 r3284  
    9191 cout<<"sch(mstar) = "<<sch(mstar)<<" /Mpc^3/Msol"<<endl;
    9292 sch.SetOutValue(0);
    93  for(double lnx=lnx1-5.;lnx<=lnx2-1.;lnx+=1.) {
     93 cout<<"......"<<endl;
     94 for(double lnx=lnx1-3.;lnx<=lnx2-1.;lnx+=1.) {
    9495   double num = IntegrateFuncLog(sch,lnx,lnx2,perc,dlxinc,dlxmax,glorder);
    9596   cout<<"["<<lnx<<","<<lnx2<<"] integrated number = "<<num<<" Mpc^-3"<<endl;
     97 }
     98 cout<<"......"<<endl;
     99 for(double lnx=lnx1+1.;lnx<=lnx2+3.;lnx+=1.) {
     100   double num = IntegrateFuncLog(sch,lnx1,lnx,perc,dlxinc,dlxmax,glorder);
     101   cout<<"["<<lnx1<<","<<lnx<<"] integrated number = "<<num<<" Mpc^-3"<<endl;
     102 }
     103 cout<<"......"<<endl;
     104 for(double lnx=lnx1-3.;lnx<=lnx2+3.;lnx+=1.) {
     105   double num = IntegrateFuncLog(sch,lnx,lnx+1.,perc,dlxinc,dlxmax,glorder);
     106   cout<<"["<<lnx<<","<<lnx+1.<<"] integrated number = "<<num<<" Mpc^-3"<<endl;
    96107 }
    97108 Histo hdndm(lnx1,lnx2,npt); hdndm.ReCenterBin();
     
    102113 sch.SetOutValue(1);
    103114 cout<<"mstar*sch(mstar) = "<<sch(mstar)<<" Msol/Mpc^3/Msol"<<endl;
    104  for(double lnx=lnx1-5.;lnx<=lnx2-1.;lnx+=1.) {
     115 cout<<"......"<<endl;
     116 for(double lnx=lnx1-3.;lnx<=lnx2-1.;lnx+=1.) {
    105117   double sum = IntegrateFuncLog(sch,lnx,lnx2,perc,dlxinc,dlxmax,glorder);
    106118   cout<<"["<<lnx<<","<<lnx2<<"] integrated mass = "<<sum<<" Msol.Mpc^-3"<<endl;
     119 }
     120 cout<<"......"<<endl;
     121 for(double lnx=lnx1+1.;lnx<=lnx2+3.;lnx+=1.) {
     122   double sum = IntegrateFuncLog(sch,lnx1,lnx,perc,dlxinc,dlxmax,glorder);
     123   cout<<"["<<lnx1<<","<<lnx<<"] integrated mass = "<<sum<<" Msol.Mpc^-3"<<endl;
     124 }
     125 cout<<"......"<<endl;
     126 for(double lnx=lnx1-3.;lnx<=lnx2+3.;lnx+=1.) {
     127   double sum = IntegrateFuncLog(sch,lnx,lnx+1.,perc,dlxinc,dlxmax,glorder);
     128   cout<<"["<<lnx<<","<<lnx+1.<<"] integrated mass = "<<sum<<" Msol.Mpc^-3"<<endl;
    107129 }
    108130 Histo hmdndm(lnx1,lnx2,npt); hmdndm.ReCenterBin();
  • trunk/Cosmo/SimLSS/genefluct3d.cc

    r3283 r3284  
    10011001// Replace  "V"  by  "scalecube * ( V + offsetcube )"
    10021002{
    1003  if(lp_>0) cout<<"--- ScaleCube "<<scalecube<<endl;
     1003 if(lp_>0) cout<<"--- ScaleCube scale="<<scalecube<<" offset="<<offsetcube<<endl;
    10041004
    10051005 for(long i=0;i<Nx_;i++) for(long j=0;j<Ny_;j++) for(long l=0;l<Nz_;l++) {
Note: See TracChangeset for help on using the changeset viewer.